From a5b6bd2ba02786c4539beb4a64d3a6a64ef7dbfc Mon Sep 17 00:00:00 2001 From: soaos Date: Mon, 24 Nov 2025 05:04:38 -0500 Subject: switched to index page html basis --- templates/base.html | 7 +++++ templates/index.html | 40 ++++++++++++++++++++++-- templates/macros.html | 65 +++++++++++++++++++++++++++++++++++++-- templates/shortcodes/subtree.html | 6 +++- 4 files changed, 112 insertions(+), 6 deletions(-) (limited to 'templates') 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 @@
  • Cookie-Free Page
  • +
  • + Work on this site released under CC0 +
  • 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")}} +

    +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. +

    +{{ 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='Soaos 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 %} -{{ post.title }} -{% endfor %} {% endmacro input %} \ No newline at end of file +{% macro window(title, close=false) %} +
    +
    +
    {{title | safe}}
    +
    + {% if close %} + + {% endif %} +
    +
    +
    +{% endmacro window %} + +{% macro endwindow() %} +
    +
    +{% endmacro endwindow %} + + +{% macro soaosed(text) %} +{{ text }} +{% endmacro soaosed %} + +{% macro treeview(height="auto") %} +
    +
      +{% endmacro treeview %} + +{% macro endtreeview() %} +
    +
    +{% endmacro endtreeview %} + +{% macro subtree(name, url="", open=false, blank=false) %} +
  • +
    + + {% if url %}{% else %}{% endif %} + {{ name | safe }} + {% if url %}{% else %}{% endif %} + +
      +{% endmacro subtree %} + +{% macro endsubtree() %} +
    +
    +
  • +{% endmacro endsubtree %} + +{% macro treelink(text, url, blank=false, wip=false, wip_tooltip="") %} +
  • + {{ text }} + {% if wip %} + + + + {% endif %} +
  • +{% 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 @@
  • - {{ name | safe }} + + {% if url %}{% else %}{% endif %} + {{ name | safe }} + {% if url %}{% else %}{% endif %} +
      {{ body | markdown | safe }}
    -- cgit v1.2.3