1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blog/pelicanconf.py

58 lines
1.2 KiB
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
import os
import sys
sys.path.append(os.curdir)
import pelican
AUTHOR = "LEdoian"
SITENAME = "LEdoian's Blog"
SITE_DESCRIPTION = "My personal webpage" # NOTE: Theme-specific
SITEURL = 'https://blog.ledoian.cz'
SOURCEURL = 'https://gitea.ledoian.cz/LEdoian/blog' # NOTE: specific…
2 years ago
RELATIVE_URLS = True
PATH = 'content'
THEME = 'test-theme'
JINJA_ENVIRONMENT = {
# The default:
'trim_blocks': True,
'lstrip_blocks': True,
# Custom
'keep_trailing_newline': True,
}
PLUGINS = ['plugins.pelicanversion']
TIMEZONE = 'Europe/Prague'
# How the hell does this not support %F %T?
DEFAULT_DATE_FORMAT = '%Y-%m-%d %H:%M'
DEFAULT_LANG = 'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
DEFAULT_PAGINATION = False
DELETE_OUTPUT_DIRECTORY = True
# I am the only author, so no author page
# Also no index, as that is already a page…
AUTHOR_SAVE_AS = ''
DIRECT_TEMPLATES = ['categories', 'tags', 'archives', 'drafts']
STATIC_PATHS = [
'images',
'static',
]