-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
67 lines (50 loc) · 2.02 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
AUTHOR = 'Mitch Lindgren'
SITENAME = 'mlindgren.ca'
SITEURL = 'http://blog.mlindgren.ca'
PATH = 'content'
TIMEZONE = 'America/Los_Angeles'
DEFAULT_LANG = 'en'
# 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
DISPLAY_PAGES_ON_MENU = True
DISQUS_SITENAME = 'mlindgrenca'
# Blogroll
LINKS = ()
# Social widget
SOCIAL = (
('<img src="http://files.mlindgren.ca/images/github.png"/> Github', 'https://github.com/mlindgren'),
('<img src="http://files.mlindgren.ca/images/last.fm.png"/> last.fm', 'http://last.fm/user/lindgrenM'),
('<img src="http://files.mlindgren.ca/images/stackoverflow.png"> Stack Overflow', 'http://stackoverflow.com/users/108340/mitch-lindgren'),
('<img src="http://files.mlindgren.ca/images/yt.png"/> YouTube', 'http://www.youtube.com/user/lindgrenMitch'),
)
GITHUB_USER = 'mlindgren'
GITHUB_REPO_COUNT = 5
GITHUB_SKIP_FORK = False
GITHUB_SHOW_USER_LINK = False
X_MIN_READ = True
DEFAULT_PAGINATION = 10
ARTICLE_URL = 'entry/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'entry/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
ARTICLE_LANG_URL = 'entry/{date:%Y}/{date:%m}/{date:%d}/{slug}-{lang}/'
ARTICLE_LANG_SAVE_AS = 'entry/{date:%Y}/{date:%m}/{date:%d}/{slug}-{lang}/index.html'
PAGE_URL = 'blog/{slug}/'
PAGE_SAVE_AS = 'blog/{slug}/index.html'
ARCHIVES_SAVE_AS = 'blog/archives/index.html'
TAG_URL = 'tag/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html'
THEME = '../mlindgren-pelican-theme'
SUMMARY_MAX_LENGTH = None
PLUGIN_PATHS = ["../pelican-plugins"]
PLUGINS = ["liquid_tags.img", "liquid_tags.video", "liquid_tags.youtube",
"liquid_tags.include_code", "summary", "post_stats", "render_math"]
STATIC_PATHS = ['extra/favicon.ico', 'extra/favicon.png']
EXTRA_PATH_METADATA = {
'extra/favicon.ico': {'path': 'favicon.ico'},
'extra/favicon.png': {'path': 'favicon.png'}
}
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True