forked from isunjn/serene
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-config.toml
133 lines (111 loc) · 5.04 KB
/
example-config.toml
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
125
126
127
128
129
130
131
132
133
#=========================================================================================
#================ Docs: https://github.com/isunjn/serene/wiki ============================
#=========================================================================================
base_url = "https://example.com" # The domain of your site
title = "xxxx"
description = "xxxx xxxx xxxx"
default_language = "en"
theme = "serene"
output_dir = "public"
compile_sass = true # Keep this true
minify_html = true # Whether to minify html code
build_search_index = false # Keep this false, search is temporarily unsupported
generate_feeds = false # Whether to generate a feed file in root, read docs for more info about rss feed
feed_filenames = [
"feed.xml", # The file name of feed, "feed.xml" / "atom.xml" / "rss.xml", read docs for more info
]
taxonomies = [
{name = "tags"}, # Keep this
{name = "categories"} # Keep this
]
[markdown]
highlight_code = true
extra_syntaxes = []
highlight_theme = "nord" # The highlight theme, choose one at https://www.getzola.org/documentation/getting-started/configuration/#syntax-highlighting
render_emoji = true
external_links_target_blank = false
external_links_no_follow = true
external_links_no_referrer = true
smart_punctuation = false
[slugify]
paths = "on"
taxonomies = "on"
anchors = "on"
#=========================================================================================
[extra]
name = "xxxx" # Your name
id = "xxxx" # Your id/username/handle
bio = "xxxx" # Your bio
avatar = "img/avatar.webp" # Your avatar
show_id = true # Whether to show your id in homepage
show_blog = true # Whether to show blog
show_projects = true # Whether to show projects page
#============== Icons, you can choose at https://remixicon.com/ ====
blog_icon = "ri-quill-pen-line"
projects_icon = "ri-compasses-2-line"
home_icon = "ri-user-6-line"
rss_icon = "ri-rss-line"
toc_icon = "ri-menu-2-line"
#============== Social media links =================================
links = [
{name = "GitHub", icon = "ri-github-line", url = "https://github.com/<your-username>"},
{name = "Twitter", icon = "ri-twitter-line", url = "https://twitter.com/<your-username>"},
{name = "Email", icon = "ri-mail-line", url = "mailto:<your-email-address>"}
# Your can add more links
]
#============== Feed ===============================================
feed_in_blog_section = true # Whether to make feed file in blog section, url will be https://example.com/blog/feed.xml, read docs for more info about rss feed
#============== Some feature switches ================================
toc = true # Whether to show Table-Of-Contents [Can be overridden by page config]
blur_effect = true # Whether to turn on blur effect on navigation bar
back_to_top_button = true # Whether to show Back-To-Top button
progress_bar = true # Whether to show reading progress bar
cc_license = false # Whether to show Creative-Commons statement [Can be overridden by page config]
cc_license_statement = "This work is licensed under [CC BY-NC-SA 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/)." # The Creative-Commons statement
outdate_warn = false # Whether to show outdate warning [Can be overridden by page config]
outdate_warn_days = 120 # How many days will a post be outdated [Can be overridden by page config]
outdate_warn_text_before = "Note: This article was last updated "
outdate_warn_text_after = " days ago and may be out of date."
#============== Footer =============================================
footer_copyright_name = "<your-name>"
footer_copyright_year = "2022"
# footer_custom = "xxxxxxxx"
footer_credits = true # Whether to show "Powered by Zola and Serene" in footer
#============== Comment and Web analytics config ====================
comment = "none" # gitalk / disqus / disqus_js
analytics = "none" # google_analytics / cloudflare_web_analytics / umami / baidu_tongji
#======================= Comment =======================
[extra.gitalk]
client_id = "xxxxxxxx"
client_secret = "xxxxxxxx"
repo = "xxxxxxxx"
owner = "xxxx"
admin = ["xxxx"]
distraction_free_mode = false
per_page = 10
page_direction = "first"
proxy = "https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token"
[extra.disqus]
shortname = "xxxx"
[extra.disqus_js]
shortname = "xxxx"
apikey = "xxxx"
# site_name = "xxxx"
# identifier = "xxxx"
# url = "xxxx"
# title = "xxxx"
# api = "xxxx"
# nesting = 4
# nocomment = "xxxx"
# admin = "xxxx"
# admin_label = "xxxx"
#======================= Analytics =====================
[extra.google_analytics]
id = "G-XXXXXXXX" # or UA-XXXXXXXX
[extra.cloudflare_web_analytics]
token = "xxxxxxxx"
[extra.umami]
website_id = "xxxxx-xxxx-xxxxx"
src = "https://xxxxxxxxxxx/umami.js"
[extra.baidu_tongji]
token = "xxxxxxxx"