-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
106 lines (89 loc) · 2.73 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = u'zhang liyong'
SITENAME = u"Lyon's Blog"
RELATIVE_URLS = True
SITEURL = 'http://zhangliyong.github.io'
TIMEZONE = 'Asia/Shanghai'
USE_FOLDER_AS_CATEGORY = False
DISPLAY_CATEGORIES_ON_MENU = False
DEFAULT_DATE = 'fs'
FEED_DOMAIN = 'http://zhangliyong.github.io'
FEED_ALL_ATOM = None
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
THEME = "../pelican-elegant"
ARTICLE_URL = 'posts/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
MONTH_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/{date:%m}/index.html'
PLUGIN_PATHS = ["../pelican-plugins"]
PLUGINS = ['pelican_gist', 'sitemap', 'neighbors', 'extract_toc', 'tipue_search']
MD_EXTENSIONS = ['codehilite(css_class=highlight)', 'extra', 'headerid', 'toc']
DIRECT_TEMPLATES = (('index', 'tags', 'archives', 'search', '404'))
STATIC_PATHS = ['theme/images', 'images']
TAG_SAVE_AS = ''
CATEGORY_SAVE_AS = ''
AUTHOR_SAVE_AS = ''
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}
DEFAULT_LANG = u'en'
GITHUB_URL = 'https://github.com/zhangliyong/'
DISQUS_SITENAME = "lyonhappyblog"
GOOGLE_ANALYTICS = 'UA-48307158-1'
# Blogroll
LINKS = (('Pelican', 'http://docs.notmyidea.org/alexis/pelican/'),
('Python.org', 'http://python.org'),
('Jinja2', 'http://jinja.pocoo.org'),
('You can modify those links in your config file', '#'),)
# Social widget
SOCIAL = (
('Twitter', 'https://twitter.com/zhangliyong'),
('Github', 'https://github.com/zhangliyong'),
('Email', 'mailto:lyzhang87@gmail.com'),
)
DEFAULT_PAGINATION = 10
LANDING_PAGE_ABOUT = {
"title": "A software engineer",
"details": u'''
<pre>
{
Name: Lyon Zhang,
Github: <a href="https://github.com/zhangliyong">zhangliyong</a>,
Twitter: <a href="https://twitter.com/zhangliyong">@zhangliyong</a>,
E-mail: lyzhang87 at gmail,
}</pre>
''',
}
PROJECTS = [
{
'name': 'rq-gevent-worker',
'url': 'https://github.com/zhangliyong/rq-gevent-worker',
'description': 'A worker using gevent for rq'
},
{
'name': 'mongodb-backup',
'url': 'https://github.com/zhangliyong/mongodb-backup',
'description': 'Backup mongodb data by copying dbpath'
},
{
'name': 'pyfuncrun',
'url': 'https://github.com/zhangliyong/pyfuncrun',
'description': 'Run a function in a module'
},
{
'name': 'dash-docsets',
'url': 'https://github.com/zhangliyong/dash-docsets',
'description': 'Generate docsets for dash on MacOSX'
},
]