From 3fb51eb454e5da1fb2e2821ad91d4d8f990b2161 Mon Sep 17 00:00:00 2001 From: ZzMzaw <89450172+ZzMzaw@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:17:29 +0100 Subject: [PATCH] Fix documentation about galery Galery can be fixed by using internal resolution. Adding the lang as well allows to make the target URL lang-aware even if the image is just duplicated. Example file has been fixed as well even if it might not be used. --- docs/content/documentation/content/image-processing/index.md | 2 +- docs/templates/shortcodes/gallery.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/documentation/content/image-processing/index.md b/docs/content/documentation/content/image-processing/index.md index c04e46d986..6534eb2d0c 100644 --- a/docs/content/documentation/content/image-processing/index.md +++ b/docs/content/documentation/content/image-processing/index.md @@ -153,7 +153,7 @@ picture gallery with the following shortcode named `gallery.html`: {% for asset in page.assets -%} {%- if asset is matching("[.](jpg|png)$") -%} {% set image = resize_image(path=asset, width=240, height=180) %} - + {%- endif %} diff --git a/docs/templates/shortcodes/gallery.html b/docs/templates/shortcodes/gallery.html index d171d84974..af325d14a4 100644 --- a/docs/templates/shortcodes/gallery.html +++ b/docs/templates/shortcodes/gallery.html @@ -2,7 +2,7 @@ {% for asset in page.assets -%} {%- if asset is matching("[.](jpg|png)$") -%} {% set image = resize_image(path=asset, width=240, height=180) %} - + {%- endif %}