-
Notifications
You must be signed in to change notification settings - Fork 172
/
config.yaml.tmpl
124 lines (121 loc) · 2.84 KB
/
config.yaml.tmpl
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
common:
debug: True
access_log: True
enable_debug_log: False
db_url: mysql://root:@localhost:3306/test?charset=utf8mb4
redis_url: redis://localhost:6379
memcached_host: 127.0.0.1
memcached_post: 11211
wtf_csrf_secret_key: 234
owner: xiaoming
site_title: Lyanna Blog
per_page: 10
react_prompt: 喜欢这篇文章吗? 记得给我留言或订阅哦
google_analytics:
sentry_dsn:
request_timeout: 15
show_pageview: True
permalink_type: id
beian_id:
show_author: True
jwt_secret: lyanna
expiration_delta: 3600
wtf_csrf_enabled: False
blog_url: http://localhost:8000
cdn_domain:
redis_sentinel_service_host:
redis_sentinel_service_port: 26379
limit_rss_crawling: False
read_more: '<p>原文: <a href="{url}">{title}</a></p>'
super_admin_mode: False
comment_reactions: # One is recommended
- heart
- upvote
site_nav_menus:
- endpoint: blog.index
name: 首页
- endpoint: blog.activities
name: 动态
- endpoint: blog.topics
name: 专题
- endpoint: blog.favorites
name: 收藏
- endpoint: blog.archives
name: 归档
- endpoint: blog.tags
name: 标签
- endpoint: index.search
name: 搜索
- endpoint: /page/aboutme
name: 关于我
- endpoint: index.feed
name: RSS
icon: rss
color: '#fc6423'
oauth:
oauth_redirect_path: /oauth
redirect_uri: http://127.0.0.1:8000/oauth
client_id: 098a2e6da880878e05da
client_secret: 854cc0d86e61a83bb1dd00c3b23a3cc5b832d45c
mail:
server: smtp.qq.com
port: 465
username:
password:
partials:
- name: about_me
title: AboutMe
avatar: me.jpg # = /static/upload/me.jpg
intro: 你看到了我哟
sns:
- twitter: example
- github: example
- douban: example
- linkedin: example
- instagram: example
- stack-overflow: example
- medium: example
- zhihu: example
- email: example
- wechat: wechat-qrcode.jpg
- weixingongzhonghao: wechat-subscription-account-qrcode.png
- name: favorite/movie
title: 电影/电视剧
count: 5
- name: favorite/book
title: 我的读书
count: 5
- name: favorite/game
title: 近期玩过
count: 5
- name: latest_notes
title: 最新笔记
count: 5
- name: tagcloud
title: 标签云
count: 20
- name: html
title: 自定义HTML
body: |
<p>Hello <strong>World</strong>!!</p>
- name: latest_comments
title: 最新评论
count: 5
max_length: 65
- name: blogroll
title: 友情链接
links:
- title: 大明大明大明大明大明
url: https://www.example.com
- title: 小明
url: https://www.example.com
- name: most_viewed
title: 最热文章
count: 5
- name: feed
title: 订阅本站
path: /atom.xml # or /feed
scheme: http
readers:
- feedly
- inoreader