-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
66 lines (46 loc) · 1.47 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 -*- #
from __future__ import unicode_literals
AUTHOR = u'philokey'
SITENAME = u'philokey\u7684\u7b14\u8bb0'
SITEURL = 'http://www.philokey.com'
TIMEZONE = 'Asia/Shanghai'
DEFAULT_LANG = u'zh'
#THEME = 'bootstrap'
THEME = 'tuxlite_tbs'
DISQUS_SITENAME = 'philokeygithubio'
FEED_RSS = 'feeds/all.rss.xml'
CATEGORY_FEED_RSS = 'feeds/%s.rss.xml'
GOOGLE_ANALYTICS = 'UA-53439918-1'
DEFAULT_DATE_FORMAT = '%Y-%m-%d'
#plugins
#PLUGIN_PATH = u"/usr/local/lib/python2.7/site-packages/pelican/pelican-plugins"
PLUGIN_PATHS= u"/Users/philokey/Practice/github/pelican-plugins"
PLUGINS = ['sitemap','render_math']
## 配置sitemap 插件
SITEMAP = {
"format": "xml",
"priorities": {
"articles": 0.7,
"indexes": 0.5,
"pages": 0.3,
},
"changefreqs": {
"articles": "monthly",
"indexes": "daily",
"pages": "monthly",
}
}
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Google', 'https://www.google.com/ncr'),)
# Social widget
SOCIAL = (('Github', 'https://github.com/philokey'),
(u'微博', 'http://weibo.com/u/1690959514/'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
ARCHIVES_URL = 'archives.html'
ARTICLE_URL = 'pages/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
ARTICLE_SAVE_AS = 'pages/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'