From 40b701b405cf4c667b1cf1c4f3da60b6b8b4a624 Mon Sep 17 00:00:00 2001 From: randogoth Date: Tue, 6 Oct 2026 12:22:31 +0300 Subject: [PATCH] Serve the same content over Gemini, Spartan and WAP smolnet renders a capsule beside the HTML: plain Markdown plus sidecars, which itsybitsy converts per request. The plugin lives in the sites repo because it is not specific to any one site; the relative path is for working locally with the repos side by side, and the Nix builder copies it in. era rather than category on the article line. Everything here is Pelican's default misc, while era is what the site is actually organised around. --- pelicanconf.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pelicanconf.py b/pelicanconf.py index 59ad52a..a28b905 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -69,3 +69,18 @@ PAGINATION_PATTERNS = ( (1, '{url}', '{save_as}'), (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'), ) + +# The capsule: the same content over Gemini, Spartan and WAP. smolnet lives in +# the sites repo because it is not specific to any one site; the Nix builder +# copies it into plugins/, and the relative path is for working locally with +# the repos checked out side by side. +PLUGIN_PATHS = ['plugins', '../sites/plugins'] +PLUGINS = ['smolnet'] + +# Filed by tag, not category, so there is nothing to index by section and the +# plugin drops that block rather than offering a single bucket called misc. +SMOLNET_LATEST = 20 + +# `era` rather than the category: everything here is Pelican's default `misc`, +# while era is what the site is actually organised around. +SMOLNET_META = ['date', 'era']