-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
62 lines (44 loc) · 1.22 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
CI = os.environ.get('CI') == 'true'
AUTHOR = u'Earth Reader Team'
SITENAME = u'Earth Reader Blog'
SITEURL = 'http://blog.earthreader.org'
THEME = 'svbhack'
USER_LOGO_URL = 'https://0.gravatar.com/avatar' \
'/c52c2e139b7a530c0b0c7114e5e49d5c?s=280'
TIMEZONE = 'UTC'
DEFAULT_LANG = u'en'
ARTICLE_EXCLUDES = ['pages', 'plugins']
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}/index.html'
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}/' \
if CI else ARTICLE_SAVE_AS
STATIC_PATHS = [
'favicon.ico',
'content/images'
]
EXTRA_PATH_METADATA = {
'favicon.ico': {'path': 'favicon.ico'}
}
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'index.xml'
CATEGORY_FEED_ATOM = 'category/%s.xml'
TAG_FEED_ATOM = 'tag/%s.xml'
# Blogroll
LINKS = [
('Website', 'http://earthreader.org/'),
('GitHub', 'https://github.com/earthreader')
]
# Social widget
SOCIAL = []
DEFAULT_PAGINATION = 5
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = not CI
USE_FOLDER_AS_CATEGORY = False
TYPOGRIFY = True
PLUGIN_PATH = 'plugins'
PLUGINS = [
'gravatar'
]