summaryrefslogtreecommitdiffstatshomepage
path: root/templates/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/shortcodes/img.html2
1 files changed, 1 insertions, 1 deletions
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="/") -%}
<figure>
<a href="/{{ url }}">
- <img src="{{ resize_image(path=url, width=500, op="fit_width") }}" alt="{{ alt }}" />
+ <img src="{{ resize_image(path=url, width=500, op="fit_width", format=format | default(value="jpg")) }}" alt="{{ alt }}" />
</a>
{% if caption -%}
<figcaption class="smaller">{{ caption }}</figcaption>