-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpelicanconf.py
74 lines (60 loc) · 1.82 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Python Nairobi'
SITENAME = u'#PyNBO'
SITEURL = u'http://blog.pynbo.or.ke'
TAGLINE = u'The Python-Nairobi Blog'
PATH = 'content'
TIMEZONE = 'Africa/Nairobi'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
# Blogroll
LINKS = (('PyNBO Meetup', 'http://meetup.com/Python-Nairobi/'),
('Python.org', 'http://python.org/'),)
# Social widget
SOCIAL = (('github', 'https://github.com/Python-Nairobi/'),
('meetup', 'http://www.meetup.com/Python-Nairobi/'),
('twitter', 'http://twitter.com/pynbo/'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
# global metadata to all the contents
# DEFAULT_METADATA = (('key', 'val'),)
# path-specific metadata
EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
}
# static paths will be copied without parsing their contents
STATIC_PATHS = [
'img',
'js',
'css',
'extra/robots.txt',
'googlec9e1ed2a96ca548d.html',
'CNAME',
'BingSiteAuth.xml',
]
# code blocks with line numbers
PYGMENTS_RST_OPTIONS = {'linenos': 'table'}
# DISQUS_SITENAME = ""
PDF_GENERATOR = False
REVERSE_CATEGORY_ORDER = True
LOCALE = "C"
DEFAULT_DATE = (1969, 12, 31, 23, 59, 59)
THEME = "pure-pynbo"
SHOW_ARTICLE_AUTHOR = True
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_ARCHIVES_ON_MENU = False
DEFAULT_DATE_FORMAT = ('%B %d, %Y')
COVER_IMG_URL = 'img/blog-bg.png'
PAGE_EXCLUDES = ['.git']
IGNORE_FILES = ['*.swp', '.git*']
PLUGIN_PATHS = ['./pelican-plugins']
PLUGINS = ['sitemap', 'gravatar']
GOOGLE_ANALYTICS = 'UA-54801851-1'
READERS = {"html": None}