From 23821211e03cd69cf87b2f264b48e0125fcac29d Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 3 Aug 2026 13:22:07 +0300 Subject: Add gemini protocol --- templates_html/atom.xml | 68 +++++++++++++ templates_html/base.html | 171 +++++++++++++++++++++++++++++++++ templates_html/index.html | 64 ++++++++++++ templates_html/macros.html | 45 +++++++++ templates_html/now.html | 11 +++ templates_html/page.html | 37 +++++++ templates_html/page_linklog.html | 6 ++ templates_html/section_posts.html | 19 ++++ templates_html/section_projects.html | 5 + templates_html/shortcodes/fig.html | 4 + templates_html/shortcodes/linklog.html | 1 + templates_html/shortcodes/toc.html | 1 + 12 files changed, 432 insertions(+) create mode 100644 templates_html/atom.xml create mode 100644 templates_html/base.html create mode 100644 templates_html/index.html create mode 100644 templates_html/macros.html create mode 100644 templates_html/now.html create mode 100644 templates_html/page.html create mode 100644 templates_html/page_linklog.html create mode 100644 templates_html/section_posts.html create mode 100644 templates_html/section_projects.html create mode 100644 templates_html/shortcodes/fig.html create mode 100644 templates_html/shortcodes/linklog.html create mode 100644 templates_html/shortcodes/toc.html (limited to 'templates_html') diff --git a/templates_html/atom.xml b/templates_html/atom.xml new file mode 100644 index 0000000..b1721ce --- /dev/null +++ b/templates_html/atom.xml @@ -0,0 +1,68 @@ + + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + + {%- if config.description %} + {{ config.description }} + {%- endif %} + + + Zola + {% if last_updated is defined %}{{ last_updated | date(format="%+") }}{% endif %} + {{ feed_url | safe }} + {%- for page in pages %} + + {{ page.title }} + {{ page.date | date(format="%+") }} + {{ page.updated | default(value=page.date) | date(format="%+") }} + {% for author in page.authors %} + + + {{ author }} + + + {% else %} + + + {%- if config.author -%} + {{ config.author }} + {%- else -%} + Unknown + {%- endif -%} + + + {% endfor %} + + {{ page.permalink | safe }} + {% if page.summary %} + {{ page.summary }} + {% else %} + + {{ page.content }} + + {% endif %} + + {%- endfor %} + diff --git a/templates_html/base.html b/templates_html/base.html new file mode 100644 index 0000000..82f185e --- /dev/null +++ b/templates_html/base.html @@ -0,0 +1,171 @@ + + + + + + + + + + {% if page.date %} + + {% endif %} + + {% if page.extra.keywords %} + + {% endif %} + + {% block title %} + {% if page.title %} + {{ page.title }} β€” {{ config.title }} + {% elif section.title %} + {{ section.title }} β€” {{ config.title }} + {% else %} + {{ config.title }} + {% endif %} + {% endblock %} + + {% block description %} + {% if page.description %} + + {% elif page.summary %} + + {% else %} + + {% endif %} + {% endblock %} + + + + + + + + + +
+ Jan Tuomi +
+
+ + +
{% block content %}{% endblock %}
+ + + + + + diff --git a/templates_html/index.html b/templates_html/index.html new file mode 100644 index 0000000..31d0a90 --- /dev/null +++ b/templates_html/index.html @@ -0,0 +1,64 @@ +{% extends "base.html" %} +{% block content %} + +


+ + Hi! My name is Jan. I am a senior software engineer based in Finland. Welcome to my personal blog and digital gardenΒΉ. +

+

I like keeping things simple and pragmatic. I'm a life-long learner, but I don't go chasing trends.

+

I enjoy spending time with my fiancΓ©e and our dog, tinkering with computer hardware and software, games of all kinds but mostly video-, tabletop and role-playing, electronics, music, language learning and linguistics.

+

I created this siteΒ² as a creative outlet for expressing myself and sharing my experiences.

+ +{% set posts = get_section(path="posts/_index.md") %} +
+

Latest posts

+
+ +

The posts page is a listing of my posts. I post sporadically about various subjects and with varying levels of effort.

+

The linklog page contains a curated aggregation of bookmarks, saved blog posts and essays, books, series, papers or anything else that I feel like sharing or recommending, stored in Linkhut.

+

On the now page I write what's currently going on in my life. Stuff that some would write onto their social media page.

+

The projects page contains info about my hobby projects.

+ +
+
+

Contact

+ +
+
+

Webrings

+← +An IndieWeb Webring πŸ’ +β†’ +
+← +Fediring +β†’ + +
+
+ +
+ +

+[1] The phrase "digital garden" is a metaphor for thinking about writing and creating that focuses less on the resulting "showpiece" and more on the process, care, and craft it takes to get there. β€” Joel Hooks +

+ +

+[2] This site is written using the Zola static site generator. At first, the site was automatically deployed after every Markdown edit, but nowadays I use a more traditional manual deploy mechanism. +

+ + +{% endblock %} diff --git a/templates_html/macros.html b/templates_html/macros.html new file mode 100644 index 0000000..3922659 --- /dev/null +++ b/templates_html/macros.html @@ -0,0 +1,45 @@ +{% macro toc(page) %} + +{% endmacro %} + +{% macro linklog(page) %} +{% set lh_data = load_data(path="linklog.json") %} + +{% endmacro %} + +{% macro page_h1(page) %} +

+ {{ page.title }}
+ {% if page.date %} + ({{ page.date }}) + {% endif %} + {% if page.extra.kind %} + [{{ page.extra.kind }}] + {% endif %} +

+{% endmacro %} + +{% macro page_content(page) %} +{{ self::page_h1(page=page) }} +{{ page.content | replace(from="", to=macros::toc(page=page)) | safe }} +{% endmacro %} diff --git a/templates_html/now.html b/templates_html/now.html new file mode 100644 index 0000000..f05b6aa --- /dev/null +++ b/templates_html/now.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% import "macros.html" as macros %} + +{% block content %} +{% set posts = get_section(path="posts/_index.md") %} +{% set nows = posts.pages | filter(attribute="extra.kind", value="now") %} +{% set latest_now = nows | sort(attribute="date") | last %} + +{{ macros::page_content(page=latest_now) }} + +{% endblock %} diff --git a/templates_html/page.html b/templates_html/page.html new file mode 100644 index 0000000..61db175 --- /dev/null +++ b/templates_html/page.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} +{% import "macros.html" as macros %} +{% block content %} + +{{ macros::page_content(page=page) }} + + + + +{% endblock %} diff --git a/templates_html/page_linklog.html b/templates_html/page_linklog.html new file mode 100644 index 0000000..e4fc945 --- /dev/null +++ b/templates_html/page_linklog.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% import "macros.html" as macros %} + +{% block content %} +{{ page.content | replace(from="", to=macros::linklog(page=page)) | safe }} +{% endblock %} diff --git a/templates_html/section_posts.html b/templates_html/section_posts.html new file mode 100644 index 0000000..f44321f --- /dev/null +++ b/templates_html/section_posts.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} +{% block content %} +{% set posts = get_section(path="posts/_index.md") %} + +

{{ section.title }}

+

+ Follow via Atom/RSS (Huh?) +

+ diff --git a/templates_html/section_projects.html b/templates_html/section_projects.html new file mode 100644 index 0000000..be0db07 --- /dev/null +++ b/templates_html/section_projects.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} +{{ section.content | safe }} +{% endblock %} diff --git a/templates_html/shortcodes/fig.html b/templates_html/shortcodes/fig.html new file mode 100644 index 0000000..4ac99b4 --- /dev/null +++ b/templates_html/shortcodes/fig.html @@ -0,0 +1,4 @@ +
+ {{ alt }} + +
diff --git a/templates_html/shortcodes/linklog.html b/templates_html/shortcodes/linklog.html new file mode 100644 index 0000000..6f46a2b --- /dev/null +++ b/templates_html/shortcodes/linklog.html @@ -0,0 +1 @@ + diff --git a/templates_html/shortcodes/toc.html b/templates_html/shortcodes/toc.html new file mode 100644 index 0000000..479abec --- /dev/null +++ b/templates_html/shortcodes/toc.html @@ -0,0 +1 @@ + -- cgit v1.3