-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
156 lines (131 loc) · 3.31 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
from datetime import datetime
AUTHOR = 'Ashley Kleynhans'
SITEURL = ''
SITENAME = "Ashley's Blog"
SITETITLE = 'Ashley Kleynhans'
SITESUBTITLE = 'DevOps Engineer'
BROWSER_COLOR = '#333333'
SITELOGO = SITEURL + '/images/profile.jpeg'
FAVICON = SITEURL + '/favicon.ico'
PORT = 8000
PATH = 'content'
ROBOTS = 'index, follow'
OUTPUT_PATH = 'output/'
TIMEZONE = 'Africa/Johannesburg'
DISABLE_URL_HASH = True
DEFAULT_LANG = 'en'
THEME = 'themes/flex'
CUSTOM_CSS = 'static/custom.css'
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
USE_FOLDER_AS_CATEGORY = False
MAIN_MENU = True
HOME_HIDE_TAGS = True
GITHUB_CORNER_URL = 'https://github.com/ashleykleynhans/pelican'
SOCIAL = (
('github', 'https://github.com/ashleykleynhans'),
('stack-overflow', 'https://stackoverflow.com/users/817324/ashley-kleynhans'),
('linkedin', 'https://www.linkedin.com/in/ashleykleynhans')
)
MENUITEMS = (
('Archives', '/archives'),
('Categories', '/categories'),
('Tags', '/tags')
)
LINKS = (
('Home', '/'),
)
CC_LICENSE = {
'name': 'Creative Commons Attribution-ShareAlike 4.0 International License',
'version': '4.0',
'slug': 'by-sa',
'icon': True,
'language': 'en_US',
}
COPYRIGHT_YEAR = datetime.now().year
DEFAULT_PAGINATION = 10
STATIC_CHECK_IF_MODIFIED = True
STATIC_PATHS = [
'images',
'static',
'images/favicon.ico',
'static/robots.txt',
'static/custom.css',
'static/CNAME'
]
EXTRA_PATH_METADATA = {
'static/CNAME': {'path': 'CNAME'},
'static/robots.txt': {'path': 'robots.txt'},
'images/favicon.ico': {'path': 'favicon.ico'}
}
THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE = True
THEME_COLOR_ENABLE_USER_OVERRIDE = True
USE_LESS = True
PLUGIN_PATHS = [
'./pelican-plugins'
]
PLUGINS = [
'sitemap',
'post_stats',
'neighbors'
]
# Sitemap Settings
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.6,
'indexes': 0.6,
'pages': 0.5,
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly',
}
}
ARTICLE_URL = '{slug}/'
ARTICLE_SAVE_AS = ARTICLE_URL + 'index.html'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = PAGE_URL + 'index.html'
# There is no other HTML content
READERS = {
'html': None
}
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {
'css_class': 'highlight',
'pygments_style': 'github-dark',
'noclasses': True,
'guess_lang': True,
},
'markdown.extensions.extra': {
'markdown.extensions.footnotes': {},
'markdown.extensions.fenced_code': {},
},
'markdown.extensions.meta': {},
'markdown.extensions.toc': {
'title': 'Table of Contents',
# 'anchorlink': True,
#'permalink': True,
'toc_depth': 3,
},
'pymdownx.emoji': {
'options': {
'attributes': {
'align': 'absmiddle',
'height': '20px',
'width': '20px'
},
},
},
},
'output_format': 'html5',
}
DISQUS_SITENAME = 'trapdoor-cloud'
DISQUS_COMMENT_COUNT = True
# Google Analytics 4
GOOGLE_GLOBAL_SITE_TAG = 'G-DDEVPJLBFC'