-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpelicanconf.py
64 lines (52 loc) · 1.53 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
import os
AUTHOR = 'San Antonio Developers'
SITENAME = 'San Antonio Developers'
APP_NAME = os.getenv('APP_NAME', None)
if APP_NAME:
SITEURL = f'https://{APP_NAME}.herokuapp.com'
else:
SITEURL = 'https://sanantoniodevs.com'
THEME = 'themes/brutalist'
THEME_TEMPLATES_OVERRIDES = ['templates/']
PATH = 'content'
STATIC_PATHS = ['images', 'extras']
EXTRA_PATH_METADATA = {
'extras/humans.txt': {'path': 'humans.txt'}
}
TIMEZONE = 'America/Chicago'
DEFAULT_LANG = 'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LOGO = 'sadev_500w.png'
MENUITEMS = [
('slack', 'https://join.slack.com/t/sanantoniodevs/shared_invite/zt-18kcko06c-YtH__gsJJBumKdEYrV_OLA'),
('github', 'https://github.com/SADevs/sadevs.github.io'),
]
# Plugins
PLUGIN_PATHS = ['plugins']
PLUGINS = ['events']
PLUGIN_EVENTS = {
'ics_fname': 'calendar.ics',
}
# Social widget
TWITTER = 'https://twitter.com/SA_Devs'
GITHUB = 'https://github.com/sadevs'
DISQUS_SITENAME = "sanantoniodevs"
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'output_format': 'html5',
}