Skip to content

Commit

Permalink
Simplify aligner html
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Oct 24, 2024
1 parent ff16c89 commit 1580586
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions _includes/aligner.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
{% assign column = 100.0 | divided_by: include.column %}
{% endif %}

<div class="row">
<figure>
{% for image in images %}
<div {% if column %} style="flex: {{ column }}%" {% else %} class="column" {% endif %} >
<img {% if images.size == 1 %}class="single"{% endif %}
src="{{ image | prepend: 'assets/img/' | relative_url }}"
alt="{{ image | prepend: '/' | split: '/' | last }}">
</div>
{% endfor %}
{% if include.caption %}
<figcaption class="caption-style">{{ include.caption }}</figcaption>
{% endif %}
</figure>
</div>

<figure class="row">
{% for image in images %}
<div class="column">
<img {% if images.size== 1 %}class="single" {% endif %}
src="{{ image | prepend: 'assets/img/' | relative_url }}"
alt="{{ image | prepend: '/' | split: '/' | last }}">
</div>
{% endfor %}
{% if include.caption %}
{% endif %}
<figcaption class="caption-style">{{ include.caption }}</figcaption>
</figure>


{% assign column = false %}

0 comments on commit 1580586

Please sign in to comment.