aboutsummaryrefslogtreecommitdiffstats
path: root/_includes/art-menu.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/art-menu.html')
-rw-r--r--_includes/art-menu.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/_includes/art-menu.html b/_includes/art-menu.html
new file mode 100644
index 0000000..08a50d8
--- /dev/null
+++ b/_includes/art-menu.html
@@ -0,0 +1,22 @@
+<div class="art-menu">
+{%- for page in site.pages -%}
+ {%- assign pagedir = page.dir | remove_first: "/" | split: "/" -%}
+ {%- capture arts -%}
+ {%- for file in site.static_files -%}
+ {%- if file.art and file.path contains page.title -%}
+ {{ file.path }}
+ {%- endif -%}
+ {%- endfor -%}
+ {%- endcapture -%}
+ {% assign artpics = arts | strip_newlines | split: " " %}
+ {%- if pagedir.first == "art" and pagedir.size > 1 -%}
+ <div class="art-category">
+ <a href="{{ page.url }}">
+ {{ page.title }}
+ <br>
+ <img src="{{ artpics.first }}">
+ </a>
+ </div>
+ {% endif %}
+{%- endfor -%}
+</div>