diff options
Diffstat (limited to 'templates/shortcodes')
-rw-r--r-- | templates/shortcodes/img.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html index 84d549e..ff6869d 100644 --- a/templates/shortcodes/img.html +++ b/templates/shortcodes/img.html @@ -1,5 +1,5 @@ {% set url = page.path ~ path | trim_start_matches(pat="/") -%} -{% set image = resize_image(path=url, width=500, op="fit_width", format=format | default(value="jpg")) -%} +{% set image = resize_image(path=url, width=width | default(value=500), op="fit_width", format=format | default(value="jpg")) -%} <figure> <a href="/{{ url }}"> <img src="{{ image.url }}" alt="{{ alt }}" /> |