-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
58 lines (46 loc) · 1.45 KB
/
pelicanconf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import os
AUTHOR = "Jannik Glückert"
SITENAME = "EBADBLOG"
SITESUBTITLE = "A blog about weirdly named POSIX error codes and more"
SITEURL = ""
# for cloudflare deployments
if os.environ.get("CF_PAGES", default="0") == "1":
if os.environ["CF_PAGES_BRANCH"] != "main":
SITEURL = os.environ["CF_PAGES_URL"]
else:
SITEURL = "https://ebadblog.com"
HEADER_COVER = "images/errno.jpg"
THEME = "theme/pelican-clean-blog"
PATH = "content"
TIMEZONE = "Europe/Berlin"
DEFAULT_LANG = "en"
COLOR_SCHEME_CSS = "monokai.css"
CSS_OVERRIDE = "css/custom.css"
DISABLE_CUSTOM_THEME_JAVASCRIPT = True
FEED_DOMAIN = SITEURL
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
SOCIAL = (("github", "https://github.com/Jannik2099"),)
DEFAULT_PAGINATION = 10
STATIC_PATHS = ["css", "images"]
MARKDOWN = {
"extension_configs": {
"markdown.extensions.extra": {},
"markdown.extensions.meta": {},
"markdown.extensions.codehilite": {
"guess_lang": "false",
"css_class": "highlight",
},
},
"output_format": "html5",
}
SLUG_REGEX_SUBSTITUTIONS = [
(r"[^\w\s+-]", ""), # remove non-alphabetical/whitespace/'+-' chars
(r"(?u)\A\s*", ""), # strip leading whitespace
(r"(?u)\s*\Z", ""), # strip trailing whitespace
(r"[\s]+", "-"), # reduce multiple whitespace to single '-'
]