all repos — aaoth.xyz @ 97c19c29cd3b9d7d69e103b6b78cd299a6428086

aaoth.xyz website

_includes/art-menu.html (view raw)

 1<div class="art-menu">
 2{%- for page in site.pages -%}
 3    {%- assign pagedir = page.dir | remove_first: "/" | split: "/" -%}
 4    {%- capture arts -%}
 5    {%- for file in site.static_files -%}
 6        {%- if file.art and file.path contains page.title -%}
 7            {{ file.path }}
 8        {%- endif -%}
 9    {%- endfor -%}
10    {%- endcapture -%}
11    {% assign artpics = arts | strip_newlines | split: " " %}
12    {%- if pagedir.first == "art" and pagedir.size > 1 -%}
13    <div class="art-category">
14        <a href="{{ page.url }}">
15            {{ page.title }}
16            <br>
17            <img src="{{ artpics.first }}">
18        </a> 
19    </div>
20    {% endif %}
21{%- endfor -%}
22</div>