aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-02-23 14:23:15 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-02-23 14:23:15 +0300
commit97c19c29cd3b9d7d69e103b6b78cd299a6428086 (patch)
treefb05035181fd025be40340ff75afe9798a589312
parent25843593a10da466a1e769b8fdf17284e24d37e6 (diff)
downloadaaoth.xyz-97c19c29cd3b9d7d69e103b6b78cd299a6428086.tar.gz
aaoth.xyz-97c19c29cd3b9d7d69e103b6b78cd299a6428086.zip
add categories to art page
whooah! there is some tough liquid-tagging involved.
-rw-r--r--_config.yml2
-rw-r--r--_includes/art-menu.html22
-rw-r--r--_includes/pic-path.html8
-rw-r--r--_layouts/art-category.html18
-rw-r--r--_sass/main.scss13
-rw-r--r--art.md10
-rw-r--r--art/photos.md9
-rw-r--r--art/photos/botany.jpeg (renamed from assets/img/art/20180219_164315-01.jpeg)bin1650147 -> 1650147 bytes
-rw-r--r--art/photos/forest_ray.jpg (renamed from assets/img/art/20180513_173750-1.jpg)bin1794012 -> 1794012 bytes
-rw-r--r--art/photos/pyramid.jpg (renamed from assets/img/art/20180824_182003.jpg)bin2578973 -> 2578973 bytes
-rw-r--r--art/photos/snail.jpg (renamed from assets/img/art/20180708_165013.jpg)bin1595652 -> 1595652 bytes
-rw-r--r--art/photos/sunken_wood.jpg (renamed from assets/img/art/20180422_170414.jpg)bin1545167 -> 1545167 bytes
-rw-r--r--art/renders.md8
-rw-r--r--art/renders/cat-model.jpgbin0 -> 219858 bytes
-rw-r--r--art/renders/grb-pic.jpgbin0 -> 384254 bytes
-rw-r--r--art/renders/heads.jpgbin0 -> 4550189 bytes
-rw-r--r--art/renders/partyofthedead.jpgbin0 -> 220366 bytes
-rw-r--r--art/renders/proc_cake_cgmatter.gifbin0 -> 1704524 bytes
-rw-r--r--art/renders/rayfield.jpgbin0 -> 438965 bytes
19 files changed, 80 insertions, 10 deletions
diff --git a/_config.yml b/_config.yml
index 6cb69dd..a74072f 100644
--- a/_config.yml
+++ b/_config.yml
@@ -27,6 +27,6 @@ defaults:
image: true
- scope:
- path: "assets/img/art"
+ path: "art"
values:
art: true
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>
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: " " %}
diff --git a/_layouts/art-category.html b/_layouts/art-category.html
new file mode 100644
index 0000000..fb70a11
--- /dev/null
+++ b/_layouts/art-category.html
@@ -0,0 +1,18 @@
+---
+layout: default
+---
+
+<h1>{{ page.title }}</h1>
+
+{{ content }}
+
+{%- include pic-path.html -%} <!-- provides artpics array -->
+
+<div class="art">
+{%- for imgpath in artpics -%}
+ {% assign imgname = imgpath | split: "/" | last | split: "." | first %}
+ <div class="art-img">
+ <img src="{{ imgpath }}" alt="{{ imgname }}">
+ </div>
+{% endfor %}
+</div>
diff --git a/_sass/main.scss b/_sass/main.scss
index 9182e59..cdb979d 100644
--- a/_sass/main.scss
+++ b/_sass/main.scss
@@ -160,6 +160,19 @@ ul {
}
}
+.art-menu {
+ display: flex;
+ flex-flow: row wrap;
+ align-items: flex-start;
+ justify-content: space-around;
+ .art-category {
+ img {
+ width: 100%;
+ height: auto;
+ }
+ }
+}
+
.art {
display: flex;
flex-flow: row wrap;
diff --git a/art.md b/art.md
index a541b2b..c18ff00 100644
--- a/art.md
+++ b/art.md
@@ -3,16 +3,8 @@ title: art
permalink: /art/
---
-{% assign image_files = site.static_files | where: "art", true %}
-
here are some photos and pictures.
feel free to use them if and as you wish (don't forget to attribute).
-<div class="art">
-{% for img in image_files %}
- <div class="art-img">
- <img src="{{ img.path }}" alt="{{ img.name }}">
- </div>
-{% endfor %}
-</div>
+{% include art-menu.html %}
diff --git a/art/photos.md b/art/photos.md
new file mode 100644
index 0000000..6f5728d
--- /dev/null
+++ b/art/photos.md
@@ -0,0 +1,9 @@
+---
+title: photos
+permalink: /art/photos/
+layout: art-category
+---
+
+photos taken in different times and various circumstances.
+
+i'm not a professional photographer, but i have something to show.
diff --git a/assets/img/art/20180219_164315-01.jpeg b/art/photos/botany.jpeg
index f2c7889..f2c7889 100644
--- a/assets/img/art/20180219_164315-01.jpeg
+++ b/art/photos/botany.jpeg
Binary files differ
diff --git a/assets/img/art/20180513_173750-1.jpg b/art/photos/forest_ray.jpg
index 56845c7..56845c7 100644
--- a/assets/img/art/20180513_173750-1.jpg
+++ b/art/photos/forest_ray.jpg
Binary files differ
diff --git a/assets/img/art/20180824_182003.jpg b/art/photos/pyramid.jpg
index d439f6f..d439f6f 100644
--- a/assets/img/art/20180824_182003.jpg
+++ b/art/photos/pyramid.jpg
Binary files differ
diff --git a/assets/img/art/20180708_165013.jpg b/art/photos/snail.jpg
index 35b3175..35b3175 100644
--- a/assets/img/art/20180708_165013.jpg
+++ b/art/photos/snail.jpg
Binary files differ
diff --git a/assets/img/art/20180422_170414.jpg b/art/photos/sunken_wood.jpg
index 4b03ae5..4b03ae5 100644
--- a/assets/img/art/20180422_170414.jpg
+++ b/art/photos/sunken_wood.jpg
Binary files differ
diff --git a/art/renders.md b/art/renders.md
new file mode 100644
index 0000000..8426957
--- /dev/null
+++ b/art/renders.md
@@ -0,0 +1,8 @@
+---
+title: renders
+permalink: /art/renders/
+layout: art-category
+---
+
+computer graphics is small part of my life too.
+i'm working primarily in [blender](https://blender.org).
diff --git a/art/renders/cat-model.jpg b/art/renders/cat-model.jpg
new file mode 100644
index 0000000..89eb3e2
--- /dev/null
+++ b/art/renders/cat-model.jpg
Binary files differ
diff --git a/art/renders/grb-pic.jpg b/art/renders/grb-pic.jpg
new file mode 100644
index 0000000..d45be9a
--- /dev/null
+++ b/art/renders/grb-pic.jpg
Binary files differ
diff --git a/art/renders/heads.jpg b/art/renders/heads.jpg
new file mode 100644
index 0000000..09c0bc8
--- /dev/null
+++ b/art/renders/heads.jpg
Binary files differ
diff --git a/art/renders/partyofthedead.jpg b/art/renders/partyofthedead.jpg
new file mode 100644
index 0000000..729ce02
--- /dev/null
+++ b/art/renders/partyofthedead.jpg
Binary files differ
diff --git a/art/renders/proc_cake_cgmatter.gif b/art/renders/proc_cake_cgmatter.gif
new file mode 100644
index 0000000..6d527e5
--- /dev/null
+++ b/art/renders/proc_cake_cgmatter.gif
Binary files differ
diff --git a/art/renders/rayfield.jpg b/art/renders/rayfield.jpg
new file mode 100644
index 0000000..49957f7
--- /dev/null
+++ b/art/renders/rayfield.jpg
Binary files differ