Skip to content

Commit

Permalink
Merge pull request #6 from BlueHuskyStudios/feature/4-Gallery
Browse files Browse the repository at this point in the history
Added thumbnails and single-item galleries
  • Loading branch information
KyLeggiero authored May 13, 2020
2 parents f742416 + 7fab8db commit 4b96269
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Galleries/single-item-highlight-custom-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

{%- if include.caption %}
<figcaption class="caption">{{ include.caption }}</figcaption>
{%- endif %}
</figure>
2 changes: 2 additions & 0 deletions Galleries/single-item-highlight-custom-start.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

<figure class="thumbnail-gallery card {%- if include.raised %} raised {%- endif %}">
8 changes: 8 additions & 0 deletions Galleries/single-item-highlight.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

{% include ./single-item-highlight-custom-start.html
raised=include.raised
%}
<a href="{{ include.full }}" target="_blank" class="thumbnail-full-image-link"><img src="{{ include.thumb | default: include.full }}" {%- if include.alt %} alt="{{ include.alt }}" {%- endif %} class="thumbnail" /></a>
{% include ./single-item-highlight-custom-end.html
caption=include.caption
%}
9 changes: 9 additions & 0 deletions Galleries/thumbnails-gallery.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

<figure class="thumbnail-gallery card flex-row flex-wrap flex-horiz-space-around">
{% for image in include.images -%}
<a href="{{ image.full }}" target="_blank" class="thumbnail-full-image-link"><img src="{{ image.thumb | default: image.full }}" {%- if image.alt %} alt="{{ image.alt }}" {%- endif %} class="thumbnail" /></a>
{%- endfor %}
{%- if include.caption %}
<figcaption class="caption">{{ include.caption }}</figcaption>
{%- endif %}
</figure>

0 comments on commit 4b96269

Please sign in to comment.