Files
haemka.de/pelicanconf.py
T
haemka d73f275c31 Add devel/staging staged-publishing flow, rename default branch to main
- .gitea/workflows/build-deploy.yml: trigger on [main, staging, devel];
  build step picks publishconf.py (main) / stagingconf.py (staging) /
  bare pelicanconf.py (devel, same as a plain local build); deploy
  step already had prod-vs-test branching, updated its ref check from
  master to main to match the repo's renamed default branch.
- stagingconf.py: new, prod-like preview config (feeds, absolute URLs)
  pointed at the internal dev webserver instead of the real domain.
- pelicanconf.py: SITEURL set to the dev webserver address (was ''),
  used by both stagingconf.py and bare devel builds.
2026-08-14 16:54:36 +00:00

73 lines
1.8 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 = 'haemka'
SITENAME = '[hɐəmkɑ]'
SITEURL = 'http://haemka-de.wd.haemka.lan'
TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = 'en'
LOCALE = 'en_US.UTF-8'
THEME = './themes/latex/'
PLUGINS = ['i18n_subsites']
I18N_SUBSITES = {
'de': {
'SITENAME': 'haemka',
'LOCALE': 'de_DE.UTF-8',
},
}
PATH = './content/'
PAGE_PATHS = ['pages']
ARTICLE_PATHS = ['en', 'de']
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
# Social links (name, url, icon slug matching theme/templates/icons/<slug>.svg)
SOCIAL = (
('GitHub', 'https://github.com/haemka', 'github'),
('LinkedIn', 'https://www.linkedin.com/in/haemka', 'linkedin'),
('ORCID', 'https://orcid.org/0000-0003-0286-8682', 'orcid'),
('Mastodon', 'https://chaos.social/@haemka', 'mastodon'),
('Bluesky', 'https://bsky.app/profile/haemka.de', 'bluesky'),
('Matrix', 'matrix:u/haemka:matrix.org', 'matrix'),
)
DEFAULT_PAGINATION = False
RELATIVE_URLS = True
DISPLAY_RECENT_ARTICLES_ON_MENU = True
RECENT_ARTICLES_COUNT = 10
DISPLAY_TAG_CLOUD_ON_MENU = True
MARKDOWN = {
'extension_configs': {
'markdown.extensions.extra': {},
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.meta': {},
'markdown.extensions.toc': {
'permalink': True,
'toc_depth': '2-4',
},
},
'output_format': 'html5',
}