forked from bekcpear/mypelicanconfandarticles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
89 lines (77 loc) · 2.03 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# Theme settings
THEME = './bitbiliNewTheme/dist'
import os
import sys
sys.path.append(os.path.join(os.curdir, 'bitbiliNewTheme/config'))
from bitbiliNewThemeConfig import *
# Main settings
AUTHOR = SITE["author"]["username"]
DEFAULT_DATE_FORMAT = '%Y 年 %m 月 %d 日(周%a)'
DEFAULT_LANG = "zh_hans"
DEFAULT_PAGINATION = 6
LOCALE = 'zh_CN.utf8'
PAGE_URL = "{slug}.html"
PAGE_SAVE_AS = PAGE_URL
STATIC_PATHS = []
SITENAME = SITE["name"]
SITESUBTITLE = SITE["desc"]
SITEURL = SITE["url"]
#SUMMARY_MAX_LENGTH = 60
TIMEZONE = "Asia/Shanghai"
AVATAR = SITE['author']['profile']['avatar']
PYGMENTS_STYLE = 'github'
ABOUT_PAGE = "about.html"
BLOGROLL_PAGE = "blogroll.html"
SITE_VERSION = "2022.02.17.959 (未更新值)"
# Others
RELATIVE_URLS = False
CHECK_MODIFIED_METHOD = "md5"
LOAD_CONTENT_CACHE = True
CACHE_CONTENT = True
OUTPUT_SOURCES = True
OUTPUT_SOURCES_EXTENSION = '.rst'
TYPOGRIFY = False
GTAG_ID = "G-CTHH0WHBCT"
ARTICLE_EXCLUDES = [
'Drafts',
'mis',
'fixes',
'demos',
'static',
'images',
'nocimages'
]
PLUGIN_PATHS = ['plugins']
PLUGINS = ["plantuml",
'bilibili',
'neighbors',
'twitter_bootstrap_rst_directives',
'tag_cloud',
'sitemap',
'summary',
'extract_toc',
'pin_to_top',
'rst_with_html5',
'related_posts']
RELATED_POSTS_TEXT = '相关文章'
PIN_TO_TOP = [
'golang_spec',
'gentoo-linux-installation-and-usage-tutorial',
]
SITEMAP = {
'format': 'xml',
'exclude': ['404.html'],
'priorities': {
'articles': 1,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'weekly',
'indexes': 'weekly',
'pages': 'monthly'
}
}