zonetoast/pelicanconf.py
randogoth 40b701b405 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.
2026-10-06 12:22:31 +03:00

86 lines
2.5 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'T.F.'
SITENAME = u'ZONETOAST'
SITE_SUBTITLE = u'A Chronotopology of Unfinished Timelines'
# SITEURL = '//sublunar.space'
THEME = 'blue-penguin-dark'
PATH = 'content'
DEFAULT_DATE = 'fs'
SUMMARY_MAX_LENGTH = 100
DEFAULT_DATE_FORMAT = '%d %b %Y'
TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = u'en'
STATIC_PATHS = ['assets']
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
FEED_ALL_RSS = 'feeds/all.rss.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# HTML metadata
SITEDESCRIPTION = SITE_SUBTITLE
# all defaults to True.
DISPLAY_HEADER = True
DISPLAY_FOOTER = True
DISPLAY_HOME = True
DISPLAY_MENU = True
DISPLAY_PAGES_ON_MENU = True
DARK_LIGHT_SWITCHING_OFF = False
# provided as examples, they make ‘clean’ urls. used by MENU_INTERNAL_PAGES.
TAGS_URL = 'tags'
TAGS_SAVE_AS = 'tags/index.html'
AUTHORS_URL = 'authors'
AUTHORS_SAVE_AS = 'authors/index.html'
CATEGORIES_URL = 'categories'
CATEGORIES_SAVE_AS = 'categories/index.html'
ARCHIVES_URL = 'archives'
ARCHIVES_SAVE_AS = 'archives/index.html'
# use those if you want pelican standard pages to appear in your menu
MENU_INTERNAL_PAGES = (
# ('Tags', TAGS_URL, TAGS_SAVE_AS),
# ('Authors', AUTHORS_URL, AUTHORS_SAVE_AS),
# ('Categories', CATEGORIES_URL, CATEGORIES_SAVE_AS),
# ('Archives', ARCHIVES_URL, ARCHIVES_SAVE_AS),
)
# additional menu items
MENUITEMS = (
# ('GitHub', 'https://github.com/'),
# ('Linux Kernel', 'https://www.kernel.org/'),
)
# example pagination pattern
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']