From aa04d615cdd832d2300d427f4342ac09b93609d0 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 3 Jul 2021 13:30:48 +0200 Subject: templates: Allow passing format to img shortcode Sometimes we may want to override the default setting when processing images. Furthermore, since we will most likely want to generate JPG files in the general case in order to minimise the amount of data transferred when opening the front page, have the default in the shortcode be "jpg" instead of "auto". --- templates/shortcodes/img.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html index 13d38d6..6b4eca4 100644 --- a/templates/shortcodes/img.html +++ b/templates/shortcodes/img.html @@ -1,7 +1,7 @@ {% set url = page.path ~ path | trim_start_matches(pat="/") -%}
- {{ alt }} + {{ alt }} {% if caption -%}
{{ caption }}
-- cgit v1.2.3-2-gb3c3