-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
61 lines (49 loc) · 1.61 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'The PythonKC Organizer Team'
SITENAME = 'PythonKC'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'US/Central'
DEFAULT_LANG = 'en'
# Theme
THEME = 'pelican-sober'
SIDEBAR_DIGEST = 'supporting the Python community in the greater Kansas City area'
TWITTER_USERNAME = 'pythonkc'
PYGMENTS_STYLE = 'solarizedlight'
# Pretty URLs
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}/index.html'
PAGE_URL = 'pages/{slug}/'
PAGE_SAVE_AS = 'pages/{slug}/index.html'
TAG_URL = 'tag/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html'
CATEGORY_URL = 'category/{slug}/'
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
# Archives
YEAR_ARCHIVE_SAVE_AS = 'archive/{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = 'archive/{date:%Y}/{date:%m}/index.html'
# 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
# Blogroll
LINKS = (
('PyKC Meetup.com', 'https://www.meetup.com/pythonkc/'),
('PyKC Slack', 'https://pykc-slackipy.herokuapp.com/'),
('Pelican', 'http://docs.getpelican.com/en/stable/'),
('Python.org', 'https://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
)
# Social widget
SOCIAL = (
('Twitter', 'https://twitter.com/PythonKC'),
('GitHub', 'https://github.com/pythonkc'),
('LinkedIn', 'https://www.linkedin.com/groups/3996011'),
)
DEFAULT_PAGINATION = 8
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True