undefinedbehavior-website/pelicanconf.py
2024-01-06 14:44:31 +01:00

65 lines
1.6 KiB
Python

from sys import path
from os import curdir
path.append(curdir)
from filters import add_sidenotes
from datetime import date
DATE = str(date.today())
# General Settings
AUTHOR = 'error'
SITENAME = 'Undefined <br/>Behavior'
SITEURL = ''
PATH = 'content'
THEME = 'undefined-theme'
FAVICON = 'BlobCat.png'
STATIC_PATHS = ['BlobCat.png']
DISPLAY_PAGES_ON_MENU = True
# Locale Settings
TIMEZONE = 'Europe/Berlin'
DEFAULT_DATE_FORMAT = '%Y-%m-%d'
DEFAULT_LANG = 'en'
# Feed Generation Settings
FEED_ALL_ATOM = 'feeds/atom.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# 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'),)
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
SOCIAL = (('Mastodon', 'https://chaos.social/@Error'),)
DEFAULT_PAGINATION = False
# Development Settings
RELATIVE_URLS = True
DELETE_OUTPUT_DIRECTORY = True
JINJA_FILTERS = {'add_sidenotes': add_sidenotes}