-
Notifications
You must be signed in to change notification settings - Fork 4
/
pelicanconf.py
91 lines (72 loc) · 2.56 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
# Theme-specific settings
SITENAME = 'Kevin Yap'
DOMAIN = 'kevinyap.ca'
BIO_TEXT = 'Developer and musician from Vancouver, BC.'
FOOTER_TEXT = 'Powered by <a href="http://getpelican.com">Pelican</a> and <a href="http://pages.github.com">GitHub Pages</a>.'
SITE_AUTHOR = 'Kevin Yap'
TWITTER_USERNAME = '@iKevinY'
GOOGLE_PLUS_URL = 'https://plus.google.com/+KevinYapCA'
MASTODON_URL = "https://mastodon.social/@iKevinY"
INDEX_DESCRIPTION = 'Website and blog of Kevin Yap, a developer and musician from Vancouver, BC.'
ICONS_PATH = 'images/icons'
SOCIAL_ICONS = [
('https://twitter.com/iKevinY', 'Twitter', 'fa-twitter'),
('https://github.com/iKevinY', 'GitHub', 'fa-github'),
('https://instagram.com/ikeviny', 'Instagram', 'fa-instagram'),
('https://buttondown.email/iKevinY', 'Newsletter', 'fa-newspaper-o'),
('/atom.xml', 'Atom Feed', 'fa-feed'),
]
THEME_COLOR = '#FF8000'
BUTTONDOWN_LINK = 'https://buttondown.email/iKevinY'
# Pelican settings
RELATIVE_URLS = True
SITEURL = 'http://kevinyap.ca'
TIMEZONE = 'America/Vancouver'
DEFAULT_DATE = 'fs'
DEFAULT_DATE_FORMAT = '%B %-d, %Y'
DEFAULT_PAGINATION = False
SUMMARY_MAX_LENGTH = 42
THEME = 'pneumatic'
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = ARTICLE_URL + 'index.html'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = PAGE_URL + 'index.html'
ARCHIVES_SAVE_AS = 'archive/index.html'
YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%m}/index.html'
# Disable authors, categories, tags, and category pages
DIRECT_TEMPLATES = ['archives']
CATEGORY_SAVE_AS = ''
# Disable Atom feed generation
FEED_ATOM = 'atom.xml'
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
TYPOGRIFY = True
MARKDOWN = {
'extension_configs': {
'markdown.extensions.admonition': {},
'markdown.extensions.codehilite': {'linenums': None},
'markdown.extensions.extra': {},
},
'output_format': 'html5',
}
CACHE_CONTENT = False
DELETE_OUTPUT_DIRECTORY = True
OUTPUT_PATH = 'develop'
PATH = 'content'
templates = ['404.html']
TEMPLATE_PAGES = {page: page for page in templates}
STATIC_PATHS = ['images', 'files', 'extra']
IGNORE_FILES = ['.DS_Store', 'pneumatic.scss', 'pygments.css']
extras = ['CNAME', 'favicon.ico', 'keybase.txt', 'robots.txt']
EXTRA_PATH_METADATA = {'extra/%s' % file: {'path': file} for file in extras}
PLUGIN_PATHS = ['plugins']
PLUGINS = ['assets', 'neighbors', 'render_math']
ASSET_SOURCE_PATHS = ['static']
ASSET_CONFIG = [
('cache', False),
('manifest', False),
('url_expire', False),
('versions', False),
]