Fix gallery shortcode
This commit is contained in:
parent
d0d2304373
commit
4aa79a46be
12
docs/templates/shortcodes/gallery.html
vendored
12
docs/templates/shortcodes/gallery.html
vendored
|
@ -1,8 +1,8 @@
|
||||||
{% for asset in page.assets %}
|
{% for asset in page.assets -%}
|
||||||
{% if asset is ending_with(".jpg") %}
|
{%- if asset is ending_with(".jpg") -%}
|
||||||
<a href="{{ get_url(path=asset) }}">
|
<a href="{{ get_url(path=asset) | safe }}">
|
||||||
<img src="{{ resize_image(path=asset, width=240, height=180, op="fill") }}" />
|
<img src="{{ resize_image(path=asset, width=240, height=180, op="fill") | safe }}" />
|
||||||
</a>
|
</a>
|
||||||
 
|
 
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
|
|
Loading…
Reference in a new issue