aboutsummaryrefslogtreecommitdiffstats
path: root/_layouts
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2022-04-19 00:24:23 +0300
committerla-ninpre <leobrekalini@gmail.com>2022-04-19 00:32:37 +0300
commit8d962aabf74c42c3afdc38f2f85fa7b06fd04ef0 (patch)
treee5054517b940e5c535a4c7282d7faa7b6462e794 /_layouts
parent9f4b181b36418669462c0300c2e090d0f4547dc8 (diff)
downloadaaoth.xyz-8d962aabf74c42c3afdc38f2f85fa7b06fd04ef0.tar.gz
aaoth.xyz-8d962aabf74c42c3afdc38f2f85fa7b06fd04ef0.zip
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!
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/about-page.html31
-rw-r--r--_layouts/art-category.html26
-rw-r--r--_layouts/default.html25
-rw-r--r--_layouts/home-page.html11
-rw-r--r--_layouts/music-project.html66
-rw-r--r--_layouts/music-release.html7
-rw-r--r--_layouts/post.html22
-rw-r--r--_layouts/tagsort.html23
8 files changed, 0 insertions, 211 deletions
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
----
-
-<div class="about">
- <div class="about-sidebar">
- <img id="avatar" alt="aaoth-photo"
- width="128" height="128" src="/assets/img/aaoth-photo.jpeg">
- <div class="about-links">
- <p>other links:</p>
- <ul>
- {%- assign sorted_links = site.data.links | sort: "type" -%}
- {% for link in sorted_links %}
- <li>
- <a href="{{ link.link }}"
- {% if link.rel %}rel="{{ link.rel }}"{% endif %}>
- <img class= "link-icon" width="32" height="32"
- alt="" src="/assets/img/{{ link.type }}-icon.png">
- <div class="link-text">{{ link.name }}</div>
- </a>
- </li>
- {% endfor %}
- </ul>
- </div>
- </div>
-
- <div class="about-info">
- {{ content }}
- </div>
-</div>
-
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 %}
-
-<div class="art">
-{%- assign pics_n = artpics.size -%}
-{%- assign range = (0..pics_n) -%}
-{%- for i in range -%}
- {%- assign imgname = artpics[i] | split: "/" | last | split: "." | first -%}
- <div class="art-img">
- <a href="{{ artpics[i] }}" target="_blank">
- <img src="{{ artthumbs[i] }}" alt="{{ imgname }}">
- </a>
- </div>
-{% endfor %}
-</div>
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 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="description"
- content="personal website featuring music and art">
- <meta name="keywords"
- content="music, art, self-hosting, foss, openbsd">
- <meta name="author"
- content="la-ninpre">
- <meta name="viewport"
- content="width=device-width, initial-scale=1">
- <title>{{ page.title }} - {{ site.title }}</title>
- {% feed_meta %}
- <link rel="stylesheet" href="/assets/css/style.css">
- <link rel="icon" href="/assets/img/favicon.ico" type="image/x-icon">
- </head>
- <body>
- {% include navigation.html %}
- <div class="content">
- {{ content }}
- </div>
- {% include footer.html %}
- </body>
-</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 }}
-
-<div class="latest-post">
- <h2>latest post</h2>
- {% assign post = site.posts[0] %}
- {% include post-preview.html %}
-</div>
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
----
-
-<!-- TODO: add physical release links-->
-<!-- TODO: add sound for albums that aren't available on bandcamp -->
-<!-- TODO: maybe add search by tag for music projects -->
-<!-- TODO: add album art -->
-
-<div class="music-project">
-
- <div class="music-project-titlebar">
- {% include title-with-backlink.html title=page.title backlink="/music/" %}
- </div>
-
- <div class="music-project-sidebar">
- <a href="/visual/logos/{{ page.url | split: "/" | last }}-logo.png">
- <img id="logo"
- src="/visual/logos/thumbs/{{ page.url | split: "/" | last }}-logo_thumb.png"
- alt="{{ page.title }} logo">
- </a>
- <p>{{ page.start_date | date_to_string }}&ndash;
- {%- if page.end_date -%}
- {{ page.end_date | date_to_string }}
- {%- else -%}
- &hellip;
- {%- endif -%}
- {%- if page.status -%}
- &ensp;({{ page.status }})
- {%- endif -%}
- </p>
- <p>tags: {{ page.tags | join: ", " }}</p>
- </div>
-
- <div class="music-project-info">
-
- {{ page.content | markdownify }}
-
- </div>
-
- {%- 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 %}
-</div>
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
----
-
-<!-- TODO: add album art and maybe change the whole structure -->
-
-{%- 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
----
-
-<div class="post-page">
- <div class="post-header">
- {% include title-with-backlink.html title=page.title backlink="/blog/" %}
- <div class="post-header-info">
- <p class="post-date">{{ page.date | date: "%F" }}</p>
- {% if page.tags.size > 0 %}
- <p>tags:</p>
- <ul>
- {% for tag in page.tags %}
- <li><a href="/tags/{{ tag }}">{{ tag }}</a></li>
- {% endfor %}
- {% endif %}
- </ul>
- </div>
- <hr>
- </div>
- {{ content }}
-</div>
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
----
-
-<h1>{{ page.tag }}</h1>
-
-{% capture nposts %}
-{{ site.tags[page.tag] | size }}
-{%- endcapture -%}
-{%- capture nposts_mod10 -%}
-{{ nposts | modulo: 10 }}
-{%- endcapture -%}
-<small>
- {{ nposts }} {% if nposts_mod10 == "1" %} post
- {%- else -%} posts
- {% endif %}
-</small>
-
-<div class="posts">
-{% for post in site.tags[page.tag] %}
- {% include post-preview.html %}
-{% endfor %}
-</div>