Portfolio image captions and dates
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2102441dd2
commit
beaa79b377
50 changed files with 124 additions and 76 deletions
|
@ -73,6 +73,8 @@
|
|||
new SimpleLightbox('.gallery a', {
|
||||
widthRatio: 0.9,
|
||||
heightRatio: 0.95,
|
||||
captionSelector: '.gallery-caption',
|
||||
captionType: 'text',
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -13,7 +13,16 @@ layout: base.njk
|
|||
</div>
|
||||
<div class="portfolio-detail-images gallery">
|
||||
{% for image in data.images %}
|
||||
<a href="{% imageUrl image %}"><img src="{{image}}" alt="" loading="lazy" /></a>
|
||||
<a href="{% imageUrl image.url %}">
|
||||
<img src="{{image.url}}" alt="" loading="lazy" />
|
||||
{% if image.caption %}
|
||||
<div class="gallery-caption">
|
||||
{{image.caption}}
|
||||
<small class="d-inline-block"> - {{image.date | dateLocale}}</small>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue