undefinedbehavior-website/pelicanconf.py

65 lines
1.6 KiB
Python
Raw Permalink Normal View History

2022-08-28 18:56:24 +02:00
from sys import path
from os import curdir
path.append(curdir)
2023-10-24 14:19:59 +02:00
from filters import add_sidenotes
2022-08-28 18:56:24 +02:00
2022-08-29 20:11:53 +02:00
from datetime import date
DATE = str(date.today())
2023-10-24 14:19:59 +02:00
# General Settings
AUTHOR = 'error'
SITENAME = 'Undefined <br/>Behavior'
SITEURL = ''
PATH = 'content'
THEME = 'undefined-theme'
2024-01-06 14:44:31 +01:00
FAVICON = 'BlobCat.png'
STATIC_PATHS = ['BlobCat.png']
2023-10-24 14:19:59 +02:00
DISPLAY_PAGES_ON_MENU = True
2022-08-28 18:56:24 +02:00
2023-10-24 14:19:59 +02:00
# Locale Settings
TIMEZONE = 'Europe/Berlin'
2022-08-28 18:56:24 +02:00
DEFAULT_DATE_FORMAT = '%Y-%m-%d'
2023-10-24 14:19:59 +02:00
DEFAULT_LANG = 'en'
# Feed Generation Settings
FEED_ALL_ATOM = 'feeds/atom.xml'
CATEGORY_FEED_ATOM = None
2022-08-28 18:56:24 +02:00
TRANSLATION_FEED_ATOM = None
2023-10-24 14:19:59 +02:00
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
2022-08-28 18:56:24 +02:00
2023-10-24 14:19:59 +02:00
# Site Path Settings
ARTICLE_URL = 'blog/{slug}/'
ARTICLE_SAVE_AS = 'blog/{slug}/index.html'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
AUTHOR_URL = ''
AUTHOR_SAVE_AS = ''
AUTHORS_SAVE_AS = ''
CATEGORY_URL = ''
CATEGORY_SAVE_AS = ''
CATEGORIES_SAVE_AS = ''
TAG_URL = ''
TAG_SAVE_AS = ''
TAGS_SAVE_AS = ''
ARCHIVES_SAVE_AS = 'blog/index.html'
# Theme Specific Settings
LINKS = (('credits', '/credits'),
('imprint', '/imprint'),
('privacy', '/privacy'),)
2023-10-24 14:19:59 +02:00
DESCRIPTION = "If, as Adam Savage famously put it, the only difference between screwing around and science is writing it down, I should write about my projects somewhere."
# Social widget
2024-01-06 14:26:04 +01:00
SOCIAL = (('Mastodon', 'https://chaos.social/@Error'),)
2022-08-28 18:56:24 +02:00
DEFAULT_PAGINATION = False
2023-10-24 14:19:59 +02:00
# Development Settings
2022-08-28 18:56:24 +02:00
RELATIVE_URLS = True
DELETE_OUTPUT_DIRECTORY = True
2023-10-24 14:19:59 +02:00
JINJA_FILTERS = {'add_sidenotes': add_sidenotes}