a
This commit is contained in:
parent
0a8be90c90
commit
81bbb7b1d7
726 changed files with 79 additions and 38273 deletions
|
@ -1,10 +1,13 @@
|
|||
<div>
|
||||
{% for asset in page.assets -%}
|
||||
{%- if asset is matching("[.](jpg|png)$") -%}
|
||||
{% set image = resize_image(path=asset, width=240, height=180) %}
|
||||
<a href="{{ get_url(path=asset) }}" target="_blank">
|
||||
<img src="{{ image.url }}" />
|
||||
</a>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</div>
|
||||
{% if parameters.gallery and page.extra.galleries and page.extra.galleries[parameters.gallery] %}
|
||||
<div class="gallery">
|
||||
{% set gallery_name = parameters.gallery %}
|
||||
{% set gallery = page.extra.galleries[gallery_name] %}
|
||||
|
||||
{% for image in gallery %}
|
||||
<div class="gallery-item">
|
||||
<img src="{{ get_url(path=image.file) }}" alt="{{ image.alt | default(value="") }}">
|
||||
<div class="caption">{{ image.title }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue