From 8d962aabf74c42c3afdc38f2f85fa7b06fd04ef0 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Tue, 19 Apr 2022 00:24:23 +0300 Subject: reimplement website using shell scripts major change, i know. now i'm using ssg and rssg by roman zolotarev. okay, well, not exactly. ssg is modified to generate pages for gemini too. it's hard to maintain two different things simultaneously. bye-bye jekyll! --- _layouts/about-page.html | 31 --------------------- _layouts/art-category.html | 26 ------------------ _layouts/default.html | 25 ----------------- _layouts/home-page.html | 11 -------- _layouts/music-project.html | 66 --------------------------------------------- _layouts/music-release.html | 7 ----- _layouts/post.html | 22 --------------- _layouts/tagsort.html | 23 ---------------- 8 files changed, 211 deletions(-) delete mode 100644 _layouts/about-page.html delete mode 100644 _layouts/art-category.html delete mode 100644 _layouts/default.html delete mode 100644 _layouts/home-page.html delete mode 100644 _layouts/music-project.html delete mode 100644 _layouts/music-release.html delete mode 100644 _layouts/post.html delete mode 100644 _layouts/tagsort.html (limited to '_layouts') diff --git a/_layouts/about-page.html b/_layouts/about-page.html deleted file mode 100644 index 1e5ebd2..0000000 --- a/_layouts/about-page.html +++ /dev/null @@ -1,31 +0,0 @@ ---- -layout: default ---- - -
-
- aaoth-photo - -
- -
- {{ content }} -
-
- diff --git a/_layouts/art-category.html b/_layouts/art-category.html deleted file mode 100644 index ca12389..0000000 --- a/_layouts/art-category.html +++ /dev/null @@ -1,26 +0,0 @@ ---- -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 %} - -
-{%- assign pics_n = artpics.size -%} -{%- assign range = (0..pics_n) -%} -{%- for i in range -%} - {%- assign imgname = artpics[i] | split: "/" | last | split: "." | first -%} -
- - {{ imgname }} - -
-{% endfor %} -
diff --git a/_layouts/default.html b/_layouts/default.html deleted file mode 100644 index f81a645..0000000 --- a/_layouts/default.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - {{ page.title }} - {{ site.title }} - {% feed_meta %} - - - - - {% include navigation.html %} -
- {{ content }} -
- {% include footer.html %} - - diff --git a/_layouts/home-page.html b/_layouts/home-page.html deleted file mode 100644 index e2d2618..0000000 --- a/_layouts/home-page.html +++ /dev/null @@ -1,11 +0,0 @@ ---- -layout: default ---- - -{{ content }} - -
-

latest post

- {% assign post = site.posts[0] %} - {% include post-preview.html %} -
diff --git a/_layouts/music-project.html b/_layouts/music-project.html deleted file mode 100644 index 7437206..0000000 --- a/_layouts/music-project.html +++ /dev/null @@ -1,66 +0,0 @@ ---- -layout: default ---- - - - - - - -
- -
- {% include title-with-backlink.html title=page.title backlink="/music/" %} -
- -
- - - -

{{ page.start_date | date_to_string }}– - {%- if page.end_date -%} - {{ page.end_date | date_to_string }} - {%- else -%} - … - {%- endif -%} - {%- if page.status -%} -  ({{ page.status }}) - {%- endif -%} -

-

tags: {{ page.tags | join: ", " }}

-
- -
- - {{ page.content | markdownify }} - -
- - {%- if page.title == "hälsorisk" %} - {%- assign releases = site.music_releases | - where_exp: "item", "item.r_tag contains 'HSR'" | - group_by_exp: "item", "item.date | date: '%Y'" -%} - {%- else %} - {%- assign releases = site.music_releases | - where: "author", page.title | - group_by_exp: "item", "item.date | date: '%Y'" -%} - {%- endif -%} - {%- assign releases.size = releases | size %} - {% unless releases.size == 0 %} - {%- if page.title == "hälsorisk" %} - {% include music-project-release-by-year.html title="releases" releases=releases print_author=true %} - {% else %} - {% include music-project-release-by-year.html title="releases" releases=releases %} - {% endif %} - {% endunless %} - - {%- assign misc_tracks = site.music_titles | - where_exp: "item", "item.author == page.title and item.r_tag == nil" | - group_by_exp: "item", "item.date | date: '%Y'" -%} - {%- assign misc_tracks.size = misc_tracks | size %} - {% unless misc_tracks.size == 0 %} - {% include music-project-release-by-year.html title="misc tracks" releases=misc_tracks %} - {% endunless %} -
diff --git a/_layouts/music-release.html b/_layouts/music-release.html deleted file mode 100644 index 0b641b8..0000000 --- a/_layouts/music-release.html +++ /dev/null @@ -1,7 +0,0 @@ ---- -layout: default ---- - - - -{%- include music-project-release-info.html release=page %} diff --git a/_layouts/post.html b/_layouts/post.html deleted file mode 100644 index 602cfce..0000000 --- a/_layouts/post.html +++ /dev/null @@ -1,22 +0,0 @@ ---- -layout: default ---- - -
-
- {% include title-with-backlink.html title=page.title backlink="/blog/" %} -
- - {% if page.tags.size > 0 %} -

tags:

-
    - {% for tag in page.tags %} -
  • {{ tag }}
  • - {% endfor %} - {% endif %} -
-
-
-
- {{ content }} -
diff --git a/_layouts/tagsort.html b/_layouts/tagsort.html deleted file mode 100644 index 5dd20ec..0000000 --- a/_layouts/tagsort.html +++ /dev/null @@ -1,23 +0,0 @@ ---- -layout: default ---- - -

{{ page.tag }}

- -{% capture nposts %} -{{ site.tags[page.tag] | size }} -{%- endcapture -%} -{%- capture nposts_mod10 -%} -{{ nposts | modulo: 10 }} -{%- endcapture -%} - - {{ nposts }} {% if nposts_mod10 == "1" %} post - {%- else -%} posts - {% endif %} - - -
-{% for post in site.tags[page.tag] %} - {% include post-preview.html %} -{% endfor %} -
-- cgit v1.2.3