From 97c19c29cd3b9d7d69e103b6b78cd299a6428086 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Tue, 23 Feb 2021 14:23:15 +0300 Subject: add categories to art page whooah! there is some tough liquid-tagging involved. --- _includes/art-menu.html | 22 ++++++++++++++++++++++ _includes/pic-path.html | 8 ++++++++ 2 files changed, 30 insertions(+) create mode 100644 _includes/art-menu.html create mode 100644 _includes/pic-path.html (limited to '_includes') 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 @@ +
+{%- 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 -%} + + {% endif %} +{%- endfor -%} +
diff --git a/_includes/pic-path.html b/_includes/pic-path.html new file mode 100644 index 0000000..fed2367 --- /dev/null +++ b/_includes/pic-path.html @@ -0,0 +1,8 @@ +{%- 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 | split: " " %} -- cgit v1.2.3