Browse Source

Fix gallery shortcode

index-subcmd
Vincent Prouillet 6 years ago
parent
commit
4aa79a46be
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      docs/templates/shortcodes/gallery.html

+ 6
- 6
docs/templates/shortcodes/gallery.html View File

@@ -1,8 +1,8 @@
{% for asset in page.assets %}
{% if asset is ending_with(".jpg") %}
<a href="{{ get_url(path=asset) }}">
<img src="{{ resize_image(path=asset, width=240, height=180, op="fill") }}" />
{% for asset in page.assets -%}
{%- if asset is ending_with(".jpg") -%}
<a href="{{ get_url(path=asset) | safe }}">
<img src="{{ resize_image(path=asset, width=240, height=180, op="fill") | safe }}" />
</a>
&ensp;
{% endif %}
{% endfor %}
{%- endif %}
{%- endfor %}

Loading…
Cancel
Save