-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpelicanconf.py
More file actions
83 lines (65 loc) · 1.92 KB
/
pelicanconf.py
File metadata and controls
83 lines (65 loc) · 1.92 KB
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
#!/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'
STATIC_PATHS = ['statistics']
FAVICON='statistics/favicon.png'
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"]
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.toc': {'permalink': False},
'markdown.extensions.nl2br': {}, # GFM-like: newlines become <br>
'markdown.extensions.sane_lists': {}, # GFM-like: list parsing
'markdown.extensions.smarty': {}, # Typographic substitutions
},
'output_format': 'html5',
}
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",
}
}