Skip to content

Commit

Permalink
Make creative project name part of the link
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Aug 27, 2024
1 parent 89b444d commit b3f3dba
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions _includes/custom-gallery
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,39 @@ gallery_layout = 'third' %} {% else %} {% assign gallery_layout = '' %} {% endif
<div class="gallery-item">
<a
href="{{ img.url | relative_url }}"
{% if img.title %}
title="{{ img.title }}"
{% endif %}

{% if img.open-in-new-tab %}
target="_blank"
{% endif %}
{%
if
img.title
%}
title="{{ img.title }}"
{%
endif
%}
{%
if
img.open-in-new-tab
%}
target="_blank"
{%
endif
%}
>
<img
src="{{ img.image_path | relative_url }}"
alt="{% if img.alt %}{{ img.alt }}{% endif %}"
{% if img.open-in-new-tab %}
target="_blank"
{% endif %}
{%
if
img.open-in-new-tab
%}
target="_blank"
{%
endif
%}
/>
<div class="caption">
{{ img.caption }}
</div>
</a>
<div class="caption">
{{ img.caption }}
</div>
<div class="description">
{{ img.description }}
</div>
Expand All @@ -42,6 +56,9 @@ gallery_layout = 'third' %} {% else %} {% assign gallery_layout = '' %} {% endif
src="{{ img.image_path | relative_url }}"
alt="{% if img.alt %}{{ img.alt }}{% endif %}"
/>
<div class="description">
{{ img.description }}
</div>
</div>

{% endif %} {% endfor %} {% if include.caption %}
Expand Down

0 comments on commit b3f3dba

Please sign in to comment.