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.
This commit is contained in:
randogoth 2026-10-06 12:22:31 +03:00
parent 1e5a8ae7e2
commit 40b701b405

View file

@ -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']