-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
61 lines (48 loc) · 1.52 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
59
60
61
AUTHOR = "Toni Mägel"
SITENAME = "tnmgl.de"
SITEURL = "https://tmaegel.github.io/blog-website"
PATH = "content"
ARTICLE_ORDER_BY = "date"
PAGE_ORDER_BY = "reversed-basename"
TIMEZONE = "Europe/Berlin"
DEFAULT_LANG = "en"
# Uncomment following line if you want document-relative URLs when developing
# Can be useful in development, but set to False when you're ready to publish
# RELATIVE_URLS = True
FEED_DOMAIN = SITEURL
FEED_ALL_ATOM = "feeds/all.atom.xml"
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Social widget
LINKS = (
("fa-solid fa-rss", f"{SITEURL}/{FEED_ALL_ATOM}"),
("fa-brands fa-github", "https://github.com/tmaegel/"),
("fa-brands fa-mastodon", "https://social.dev-wiki.de/@tmaegel"),
("fa-brands fa-linkedin-in", "https://www.linkedin.com/in/toni-maegel/"),
("fa-brands fa-xing", "https://www.xing.com/profile/Toni_Maegel/cv"),
)
GITHUB_URL = "https://github.com/tmaegel/"
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_PAGES_ON_MENU = True
MENUITEMS = (
("Posts", "index.html"),
("Tags", "tags.html"),
)
DEFAULT_PAGINATION = 10
PLUGIN_PATHS = ["plugins"]
PLUGINS = ["better_codeblock_line_numbering_fork"]
STATIC_PATHS = ["images"]
MARKDOWN = {
"extension_configs": {
"markdown.extensions.codehilite": {
"css_class": "highlight",
"linenums": False,
},
"markdown.extensions.extra": {},
"markdown.extensions.meta": {},
},
"output_format": "html5",
}
THEME = "themes/custom"