Sped0n e20fb7c105 feat(imageJSON.html): add imageJSON.html partial template to generate JSON data for image resources
The imageJSON.html partial template has been added to the layouts/partials/resources directory. This template generates JSON data for image resources on a page. It retrieves the page context and the gallery resources using the site.GetPage and .Resources.ByType functions. It then iterates over the image resources, resizing them and adding their information to a Scratch variable. Finally, it outputs the JSON data as a script tag with the id "imagesSource". This JSON data can be used to dynamically load and display images on the page.
2023-10-30 15:58:37 +08:00
2023-03-17 17:43:08 +08:00
2023-03-09 08:50:16 +08:00
2023-10-30 15:51:52 +08:00
2023-03-09 09:06:20 +08:00
2023-03-09 08:50:16 +08:00
2023-10-29 12:52:44 +08:00
2023-03-09 08:50:16 +08:00
2023-10-29 12:39:56 +08:00
Description
Bridget is a minimal Hugo theme for photographers/visual artists, powered by SolidJS.
MIT 53 MiB
Languages
TypeScript 63.5%
HTML 18.5%
SCSS 12.5%
JavaScript 3%
Shell 1.5%
Other 1%