first scripts
This commit is contained in:
parent
178586c47a
commit
3bd579da3c
269 changed files with 96 additions and 3285 deletions
|
@ -1,13 +1,14 @@
|
|||
{% 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] %}
|
||||
{% set gallery_data = load_data(literal = body, format="json") %}
|
||||
|
||||
{% 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 id="image-gallery">
|
||||
<ul class="gallery">
|
||||
{% for item in gallery_data %}
|
||||
<li class="gallery-item">
|
||||
<img src="{{ item.file }}" >
|
||||
{% if item.title %}
|
||||
<p class="caption">{{ item.title }}</p>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue