-
Notifications
You must be signed in to change notification settings - Fork 35
/
pelicanconf.py
76 lines (59 loc) · 2.41 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
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
AUTHOR = 'Multiple'
SITENAME = 'Nairobi GNU/Linux Users Group'
SITEURL = '' # Intentionally left blank, see ./publishconf.py
PATH = 'content'
TIMEZONE = 'Africa/Nairobi'
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
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}.html'
ARTICLE_SAVE_AS = ARTICLE_URL
ARTICLE_LANG_URL = '{date:%Y}/{date:%m}/{slug}-{lang}.html'
ARTICLE_LANG_SAVE_AS = ARTICLE_LANG_URL
DEFAULT_PAGINATION = 10
STATIC_PATHS = ['extras', 'images']
EXTRA_PATH_METADATA = {
'extras/CNAME': {'path': 'CNAME'},
'extras/android-chrome-192x192.png': {'path': 'android-chrome-192x192.png'},
'extras/android-chrome-256x256.png': {'path': 'android-chrome-256x256.png'},
'extras/apple-touch-icon.png': {'path': 'apple-touch-icon.png'},
'extras/browserconfig.xml': {'path': 'browserconfig.xml'},
'extras/favicon-16x16.png': {'path': 'favicon-16x16.png'},
'extras/favicon-32x32.png': {'path': 'favicon-32x32.png'},
'extras/favicon.ico': {'path': 'favicon.ico'},
'extras/manifest.json': {'path': 'manifest.json'},
'extras/mstile-150x150.png': {'path': 'mstile-150x150.png'},
}
# http://docs.getpelican.com/en/stable/plugins.html#how-to-use-plugins
PLUGIN_PATHS = ['plugins']
PLUGINS = ['pelican-bootstrapify']
BOOTSTRAPIFY = {
'table': ['table', 'table-striped', 'table-hover'],
'img': ['img-fluid'],
'blockquote': ['blockquote'],
}
# Theme settings --------------------------------------------------------------
THEME = 'themes/pelican-alchemy/alchemy'
SITESUBTITLE = 'A lively community of GNU/Linux enthusiasts'
SITEIMAGE = '/images/profile.png'
DESCRIPTION = 'A not-for-profit community serving the greater Nairobi area. ' \
'We are a collection of people dedicated to GNU/Linux, Free ' \
'Software, Open Source, and related topics.'
LINKS = (
('IRC', 'https://web.libera.chat/?channels=#nairobilug'),
)
ICONS = [
('github', 'https://github.com/nairobilug'),
('twitter', 'https://twitter.com/nairobilug'),
]
PYGMENTS_STYLE = 'monokai'
RFG_FAVICONS = True
# Default value is ['index', 'tags', 'categories', 'authors', 'archives']
DIRECT_TEMPLATES = ['index', 'tags', 'categories', 'authors', 'archives', 'sitemap']
SITEMAP_SAVE_AS = 'sitemap.xml'