-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
71 lines (60 loc) · 2.58 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
AUTHOR = 'Grant Paton-Simpson & Ben Denham'
SITENAME = 'The Lean Python Blog'
SITESUBTITLE = 'Guidance on when to use Python features (and when not to)'
SITEDESCRIPTION = '''
<div class="text-muted" style="padding-bottom: 10px;">Guidance on when to use Python features (and when not to).</div>
<div class="text-muted" style="padding-bottom: 10px;">Comment your opinions on our articles to join the discussion.</div>
<div class="text-muted" style="padding-bottom: 10px;">Follow us on <a href="https://twitter.com/WhenOfPython">Twitter</a> and <a href="https://github.com/lean-python-org">GitHub</a> to get the latest updates first.</div>
'''
SITEIMAGE = 'images/logo.png'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Pacific/Auckland'
DEFAULT_LANG = 'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Social widget
ICONS = (('fa-brands fa-twitter', 'https://twitter.com/WhenOfPython'),
('fa-brands fa-github', 'https://github.com/lean-python-org'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
THEME = 'themes/pelican-alchemy/alchemy'
# https://github.com/getpelican/pelican/wiki/Tips-n-Tricks#second-solution-using-static_paths
STATIC_PATHS = ['extras', 'images', 'css', 'js']
ARTICLE_EXCLUDES = ['extras']
EXTRA_PATH_METADATA = {
'extras/android-chrome-192x192.png': {'path': 'android-chrome-192x192.png'},
'extras/android-chrome-512x512.png': {'path': 'android-chrome-512x512.png'},
'extras/apple-touch-icon.png': {'path': 'apple-touch-icon.png'},
'extras/browserconfig.xml': {'path': 'browserconfig.xml'},
'extras/favicon.ico': {'path': 'favicon.ico'},
'extras/favicon-16x16.png': {'path': 'favicon-16x16.png'},
'extras/favicon-32x32.png': {'path': 'favicon-32x32.png'},
'extras/mstile-150x150.png': {'path': 'mstile-150x150.png'},
'extras/safari-pinned-tab.svg': {'path': 'safari-pinned-tab.svg'},
'extras/site.webmanifest': {'path': 'site.webmanifest'},
'extras/googledaf848b752ddf6e8.html': {'path': 'googledaf848b752ddf6e8.html'},
}
RFG_FAVICONS = True
BOOTSTRAP_CSS = 'css/darkly.bootstrap.css'
THEME_CSS_OVERRIDES = ['css/custom.css']
PYGMENTS_STYLE = 'native'
THEME_TEMPLATES_OVERRIDES = ['template-overrides/']
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.6,
'pages': 0.5,
'indexes': 0.5,
},
'changefreqs': {
'articles': 'daily',
'pages': 'monthly',
'indexes': 'daily',
},
}