New theme and structure
This commit is contained in:
parent
28a99a0e04
commit
e4bafbb361
108 changed files with 9391 additions and 0 deletions
21
_includes/gallery
Normal file
21
_includes/gallery
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% assign images = include.images | split:" " %}
|
||||
{% assign caption = include.caption %}
|
||||
{% assign cols = include.cols %}
|
||||
|
||||
{% case cols %}
|
||||
{% when 1 %}
|
||||
{% assign class = "" %}
|
||||
{% when 2 %}
|
||||
{% assign class = "half" %}
|
||||
{% when 3 %}
|
||||
{% assign class = "third" %}
|
||||
{% else %}
|
||||
{% assign class = "" %}
|
||||
{% endcase %}
|
||||
|
||||
<figure {% if class != "" %}class="{{ class }}"{% endif %}>
|
||||
{% for image in images %}
|
||||
<a href="{{ image }}"><img src="{{ image }}" alt=""></a>
|
||||
{% endfor %}
|
||||
<figcaption>{{ caption }}</figcaption>
|
||||
</figure>
|
Reference in a new issue