summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoaos <soaos@soaos.dev>2025-11-24 05:04:38 -0500
committersoaos <soaos@soaos.dev>2025-11-24 05:04:38 -0500
commita5b6bd2ba02786c4539beb4a64d3a6a64ef7dbfc (patch)
treeb842266308124d4e72d06ed742eb120ca604a451
parent4367d1ab30163f30904e7f8375294044c07c554d (diff)
switched to index page html basis
-rw-r--r--config.toml11
-rw-r--r--content/_index.md36
-rw-r--r--content/projects/project.css0
-rw-r--r--static/assets/badges/cc-zero.pngbin0 -> 976 bytes
-rw-r--r--templates/base.html7
-rw-r--r--templates/index.html40
-rw-r--r--templates/macros.html65
-rw-r--r--templates/shortcodes/subtree.html6
8 files changed, 120 insertions, 45 deletions
diff --git a/config.toml b/config.toml
index 8ab9b67..a63e891 100644
--- a/config.toml
+++ b/config.toml
@@ -1,11 +1,16 @@
# The URL the site will be built for
base_url = "https://soaos.dev"
-# Whether to automatically compile all Sass files in the sass directory
-compile_sass = false
+title = "soaos"
+description = "i forgot to write a description for this post"
+default_language = "en"
+author = "soaos"
-# Whether to build a search index to be used later on by a JavaScript library
+compile_sass = false
build_search_index = false
+generate_feeds = true
+generate_robots_txt = true
+generate_sitemap = true
[markdown]
# Whether to do syntax highlighting
diff --git a/content/_index.md b/content/_index.md
index 520c10b..c7b5757 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -2,39 +2,3 @@
title = "soaos"
template = "index.html"
+++
-
-{% window() %}
-{% title_bar() %}
-👤 Welcome to {% soaosed() %}soaos{% end %}.dev
-{% end %}
-{% window_body() %}
-
-I'm an "artist" and professional software developer. In my free time I mostly work on eccentric software projects which you can read about here.
-
-{% tree_view(height="16rem") %}
-
-{% subtree(name="On this site", open=true) %}
-{{ treelink(text="📖 Blog", url="/blog") }}
-{{ treelink(text="♫ Rockbox Stats", url="/rockstats", wip=true, wip_tooltip="🦌 -this shit is under construction, pal!") }}
-{{ treelink(text="🦌 Things I Like", url="/things_i_like", wip=true, wip_tooltip="🦌 -honestly these things are redundant, everything is under construction") }}
-{% end %}
-
-{% subtree(name='<span class="flip" data-title="Soaos"><span class="hidden-selectable">Soaos</span></span> Services') %}
-{{ treelink(text="🌱 Git Repositories", url="https://git.soaos.dev", blank=true) }}
-{{ treelink(text="📺 Videos", url="https://tv.soaos.dev/c/soaosdev", blank=true) }}
-{{ treelink(text="🗃 Web Archive", url="https://archive.soaos.dev", blank=true) }}
-{{ treelink(text="🔍 Search Engine", url="https://search.soaos.dev", blank=true) }}
-{{ treelink(text="♊ Gemini Site", url="gemini://soaos.dev", blank=true) }}
-{% end %}
-
-{% subtree(name="Find me on the Web", open=true)%}
-{{ treelink(text="📧 E-Mail: soaos@soaos.dev", url="mailto:soaos@soaos.dev", rel="me") }}
-{{ treelink(text="💬 XMPP: soaos@chat.soaos.dev", url="xmpp:soaos@chat.soaos.dev", rel="me") }}
-{{ treelink(text="🐘 Mastodon: soaos@furry.engineer", url="http://soaos.dog", rel="me", blank=true) }}
-{{ treelink(text="🦀 SSB: @Y1EKP4PU77qby4lI+m5MN6+NcYdjTdRQlV6NmluevuY=.ed25519", url="https://ssb.soaos.dev/~core/ssb/#@Y1EKP4PU77qby4lI+m5MN6+NcYdjTdRQlV6NmluevuY=.ed25519", rel="me", blank=true) }}
-{{ treelink(text="⬡ ListenBrainz: soaos", url="https://listenbrainz.org/user/soaos/", rel="me", blank=true) }}
-{% end %}
-
-{% end %}
-{% end %}
-{% end %}
diff --git a/content/projects/project.css b/content/projects/project.css
deleted file mode 100644
index e69de29..0000000
--- a/content/projects/project.css
+++ /dev/null
diff --git a/static/assets/badges/cc-zero.png b/static/assets/badges/cc-zero.png
new file mode 100644
index 0000000..4961cf0
--- /dev/null
+++ b/static/assets/badges/cc-zero.png
Binary files differ
diff --git a/templates/base.html b/templates/base.html
index 21b20e2..4efc89d 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -72,6 +72,13 @@
<li>
<img src="/assets/badges/cookies.png" alt="Cookie-Free Page" />
</li>
+ <li>
+ <a href="https://creativecommons.org/publicdomain/zero/1.0/" target="_blank"
+ ><img
+ src="/assets/badges/cc-zero.png"
+ alt="Work on this site released under CC0"
+ /></a>
+ </li>
</ul>
</div>
<div class="status-bar">
diff --git a/templates/index.html b/templates/index.html
index 0bf66d0..89c7279 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,2 +1,38 @@
-{% extends "base.html" %} {% block content %} {{ section.content | safe }} {%
-endblock content %}
+{% extends "base.html" %}
+{% import "macros.html" as macros %}
+{% block content %}
+
+{% set soaos = macros::soaosed(text="soaos") | trim %}
+{{macros::window(title="👤 Welcome to " ~ soaos ~ ".dev")}}
+<p>
+I'm an "artist" and professional software developer. In my free time I mostly work on eccentric software projects which you can read about here.
+</p>
+{{ macros::treeview(height="16rem")}}
+
+{{ macros::subtree(name="On this site", open=true) }}
+ {{ macros::treelink(text="📖 Blog", url="/blog") }}
+ {{ macros::subtree(name="🌲 Projects", open=true, url="/projects") }}
+ {{ macros::treelink(text="🎭 Off Book", url="https://offbook.ca", wip=true, blank=true) }}
+ {{ macros::endsubtree() }}
+ {{ macros::treelink(text="🦌 Things I Like", url="/things_i_like", wip=true, wip_tooltip="🦌 -honestly these things are redundant, everything is under construction") }}
+{{ macros::endsubtree() }}
+
+{{ macros::subtree(name='<span class="flip" data-title="Soaos"><span class="hidden-selectable">Soaos</span></span> Services') }}
+ {{ macros::treelink(text="🌱 Git Repositories", url="https://git.soaos.dev", blank=true, wip=true) }}
+ {{ macros::treelink(text="📺 Videos", url="https://tv.soaos.dev/c/soaosdev", blank=true) }}
+ {{ macros::treelink(text="🗃 Web Archive", url="https://archive.soaos.dev", blank=true) }}
+ {{ macros::treelink(text="🔍 Search Engine", url="https://search.soaos.dev", blank=true) }}
+ {{ macros::treelink(text="♊ Gemini Site", url="gemini://soaos.dev", blank=true) }}
+{{ macros::endsubtree() }}
+
+{{ macros::subtree(name="Find me on the Web", open=true) }}
+ {{ macros::treelink(text="📧 E-Mail: soaos@soaos.dev", url="mailto:soaos@soaos.dev", rel="me") }}
+ {{ macros::treelink(text="💬 XMPP: soaos@chat.soaos.dev", url="xmpp:soaos@chat.soaos.dev", rel="me") }}
+ {{ macros::treelink(text="🐘 Mastodon: soaos@furry.engineer", url="http://soaos.dog", rel="me", blank=true) }}
+ {{ macros::treelink(text="🦀 SSB: @Y1EKP4PU77qby4lI+m5MN6+NcYdjTdRQlV6NmluevuY=.ed25519", url="https://ssb.soaos.dev/~core/ssb/#@Y1EKP4PU77qby4lI+m5MN6+NcYdjTdRQlV6NmluevuY=.ed25519", rel="me", blank=true) }}
+ {{ macros::treelink(text="⬡ ListenBrainz: soaos", url="https://listenbrainz.org/user/soaos/", rel="me", blank=true) }}
+{{ macros::endsubtree() }}
+
+{{macros::endtreeview()}}
+{{macros::endwindow()}}
+{% endblock content %}
diff --git a/templates/macros.html b/templates/macros.html
index eae30fe..ce73ca7 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -1,3 +1,62 @@
-{% macro post_list() %} {% for post in section.pages %}
-<a href="{{ post.permalink }}">{{ post.title }}</a>
-{% endfor %} {% endmacro input %} \ No newline at end of file
+{% macro window(title, close=false) %}
+<div class="window">
+ <div class="title-bar">
+ <div class="title-bar-text">{{title | safe}}</div>
+ <div class="title-bar-controls">
+ {% if close %}
+ <a href="{{ close }}"><button aria-label="Close"></button></a>
+ {% endif %}
+ </div>
+ </div>
+ <div class="window-body">
+{% endmacro window %}
+
+{% macro endwindow() %}
+ </div>
+</div>
+{% endmacro endwindow %}
+
+
+{% macro soaosed(text) %}
+<span class="flip" data-title="{{ text }}"
+ ><span class="hidden-selectable">{{ text }}</span></span
+>
+{% endmacro soaosed %}
+
+{% macro treeview(height="auto") %}
+<div class="sunken-panel">
+ <ul class="tree-view" style="height: {{height}}; overflow-y: scroll">
+{% endmacro treeview %}
+
+{% macro endtreeview() %}
+ </ul>
+</div>
+{% endmacro endtreeview %}
+
+{% macro subtree(name, url="", open=false, blank=false) %}
+<li>
+ <details {% if open %}open{% endif %}>
+ <summary>
+ {% if url %}<a href="{{ url }}" {% if blank %}target="_blank"{% endif %}>{% else %}<b>{% endif %}
+ {{ name | safe }}
+ {% if url %}</a>{% else %}</b>{% endif %}
+ </summary>
+ <ul>
+{% endmacro subtree %}
+
+{% macro endsubtree() %}
+ </ul>
+ </details>
+</li>
+{% endmacro endsubtree %}
+
+{% macro treelink(text, url, blank=false, wip=false, wip_tooltip="") %}
+<li>
+ <a href="{{ url }}" {% if blank %} target="_blank" {% endif %} {% if rel %} rel="{{ rel }}" {% endif %}>{{ text }}</a>
+ {% if wip %}
+ <span {% if wip_tooltip %}data-tooltip="{{ wip_tooltip }}" {% endif %}>
+ <span class="under-construction unselectable">⚠</span>
+ </span>
+ {% endif %}
+</li>
+{% endmacro treelink %} \ No newline at end of file
diff --git a/templates/shortcodes/subtree.html b/templates/shortcodes/subtree.html
index 2246718..09f29ce 100644
--- a/templates/shortcodes/subtree.html
+++ b/templates/shortcodes/subtree.html
@@ -1,6 +1,10 @@
<li>
<details {% if open %}open{% endif %}>
- <summary><b>{{ name | safe }}</b></summary>
+ <summary>
+ {% if url %}<a href="{{ url }}" {% if blank %}target="_blank"{% endif %}>{% else %}<b>{% endif %}
+ {{ name | safe }}
+ {% if url %}</a>{% else %}</b>{% endif %}
+ </summary>
<ul>
{{ body | markdown | safe }}
</ul>