-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
92 lines (75 loc) · 2.4 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
AUTHOR = 'Andrew Kail'
SITENAME = "Andrew Kail's Blog"
SITEURL = "http://localhost:9000"
SITETITLE = "Andrew Kail's Blog"
SITEDESCRIPTION = "The personal blog of Andrew Kail, an HPC enthusiast, PhD Student, and homelaber."
SITESUBTITLE = "Somewhat HPC related blog"
SITELOGO = SITEURL + "/images/profile.png"
PATH = 'content'
TIMEZONE = 'US/Eastern'
DEFAULT_LANG = 'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
# LINKS = (('Pelican', 'https://getpelican.com/'),
# ('Python.org', 'https://www.python.org/'),
# ('Jinja2', 'https://palletsprojects.com/p/jinja/'),
# ('You can modify those links in your config file', '#'),)
LINKS = (("My Configs", "https://github.com/akail/Configs"),)
# ('HPC Book (WIP)', 'https://hpc.kail.io'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
# Theme settings
THEME = 'Flex'
# THEME = 'mysimple'
THEME_COLOR = "light"
PYGMENTS_STYLE = "gruvbox-dark"
STATIC_PATHS = ["extra/custom.css", "images"]
EXTRA_PATH_METADATA = {
"extra/custom.css": {"path": "static/custom.css"},
"drafts": {"status": "draft"}
}
CUSTOM_CSS = "static/custom.css"
CC_LICENSE = {
"name": "Creative Commons Attribution-ShareAlike",
"version": "4.0",
"slug": "by-sa"
}
# Menu configurations
MAIN_MENU = True
SOCIAL = (
("github", "https://github.com/akail"),
("rss", "/feeds/all.atom.xml"),
("linkedin", "https://www.linkedin.com/in/andrewkail/"),
("mastodon", "https://fosstodon.org/@akail")
)
MENUITEMS = (
("Archives", "/archives.html"),
("Categories", "/categories.html"),
("Tags", "/tags.html"),
)
# DEFAULT_METADATA = {
# 'status': 'draft',
# }
PLUGINS = ['pelican.plugins.series',
'pelican.plugins.simple_footnotes']
## Pelican seo
SEO_REPORT = True
FAVICON = "/images/favicon.ico"
MARKDOWN = {
'extension_configs': {
"pymdownx.tilde": {},
# "pymdownx.emoji": {
# 'emoji_index': "pymdownx.emoji.gemoji",
# },
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'output_format': 'html5',
}