aboutsummaryrefslogtreecommitdiffstats
path: root/_layouts/art-category.html
blob: ca1238939d66f24231fbe68ce32fcde6531364ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
layout: default
---

{% include title-with-backlink.html title=page.title backlink="/visual/" %}

{{ content }}

{%- include pic-path.liquid -%}
{% comment %}
    upper include provides `artpics` array 
    and `artthumbs` array, which are used later
{% endcomment %}

<div class="art">
{%- assign pics_n = artpics.size -%}
{%- assign range = (0..pics_n) -%}
{%- for i in range -%}
    {%- assign imgname = artpics[i] | split: "/" | last | split: "." | first -%}
    <div class="art-img">
        <a href="{{ artpics[i] }}" target="_blank">
            <img src="{{ artthumbs[i] }}" alt="{{ imgname }}">
        </a>
    </div>
{% endfor %}
</div>