Files
Sourcetrail/web/blog/_includes/gallery
T
Eberhard Graether c4ef18fb6d web: Added jekyll blog with hpstr theme and first post for release 0.6
The README contains the commands for building the blog in all different configurations.
2016-05-10 14:10:21 +02:00

22 lines
577 B
Plaintext

{% 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>