-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpelicanconf.py
68 lines (52 loc) · 1.38 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Wizmann'
SITENAME = u"Maerlyn's Rainbow"
SITEURL = 'https://wizmann.top/'
PATH = 'content'
TIMEZONE = 'Asia/Shanghai'
DEFAULT_LANG = u'zhs'
# Feed generation is usually not desired when developing
FEED = 'feeds/all.rss.xml'
PYGMENTS_STYLE = "solarizedlight"
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_PAGES_ON_MENU = False
MENUITEMS = (
('Blog', '/category/blog.html'),
('Online Judge', 'https://vijos.org/d/wizmann/p'),
)
# Blogroll
LINKS = (
('Pelican', 'http://getpelican.com/'),
)
# Social widget
SOCIAL = (
('github', 'https://github.com/wizmann'),
('rss', SITEURL + '/feeds/all.atom.xml'),
)
DEFAULT_PAGINATION = 10
THEME = 'pelican-themes/pelican-bootstrap3'
BOOTSTRAP_THEME='flatly'
DISQUS_SITENAME = u'wizmann'
DEFAULT_DATE_FORMAT = ('%Y-%m-%d')
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
PLUGIN_PATH = ["pelican-plugins"]
PLUGINS = ["sitemap", "summary", 'tag_cloud', 'i18n_subsites', "render_math"]
JINJA_ENVIRONMENT = {
'extensions': ['jinja2.ext.i18n'],
}
SITEMAP = {
"format": "xml",
"priorities": {
"articles": 0.7,
"indexes": 0.5,
"pages": 0.3,
},
"changefreqs": {
"articles": "monthly",
"indexes": "daily",
"pages": "monthly",
}
}