-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
210 lines (174 loc) · 7.83 KB
/
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
# The base URL of the site; the only required configuration variable.
# [Cela hint] just use your github repository url or personal website domain
base_url = "https://edwardzcn-decade.github.io/cela"
# The site title and description; used in feeds by default.
title = "Cela : A simple, lightweight theme for Zola🌟"
description = "A light weight theme for zola"
# The default author for pages
author = "edwardzcn-decade"
# The default language; used in feeds.
# [Cela hint] Html lang default setting
default_language = "en"
# The site theme to use.
# [Cela hint] Try cela
# theme = "cela"
# Output directory `public` (by default)
output_dir = "public"
# Whether dotfiles at the root level of the output directory are preserved when (re)building the site.
# Enabling this also prevents the deletion of the output folder itself on rebuilds.
# [Cela hint] Cela will enable this feature by default
preserve_dotfiles_in_output = true
# When set to "true", the Sass files in the `sass` directory in the site root are compiled.
# Sass files in theme directories are always compiled.
compile_sass = false
# When set to "true", the generated HTML files are minified.
minify_html = false
# A list of glob patterns specifying asset files to ignore when the content
# directory is processed. Defaults to none, which means that all asset files are
# copied over to the `public` directory.
# Example:
# ignored_content = ["*.{graphml,xlsx}", "temp.*", "**/build_folder"]
ignored_content = []
# Similar to ignored_content, a list of glob patterns specifying asset files to
# ignore when the static directory is processed. Defaults to none, which means
# that all asset files are copied over to the `public` directory
ignored_static = []
# When set to "true", a feed is automatically generated.
# [Cela hint] Cela will enable this feature by default for rss feed.
generate_feeds = true
# The filenames to use for the feeds. Used as the template filenames, too.
# Defaults to ["atom.xml"], which has a built-in template that renders an Atom 1.0 feed.
# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed.
feed_filenames = ["atom.xml"]
# The number of articles to include in the feed. All items are included if
# this limit is not set (the default).
# [Cela hint] Cela will set the feed limit to 50 by default
feed_limit = 50
# The taxonomies to be rendered for the site and their configuration of the default languages
# Example:
# taxonomies = [
# {name = "tags", feed = true}, # each tag will have its own feed
# {name = "tags"}, # you can have taxonomies with the same name in multiple languages
# {name = "categories", paginate_by = 5}, # 5 items per page for a term
# {name = "authors"}, # Basic definition: no feed or pagination
# ]
#
taxonomies = [
{name = "tags", feed = true},
{name = "categories", feed = true},
]
# When set to "true", a search index is built from the pages and section
# content for `default_language`.
# [Cela hint] Cela will enable this feature by default
build_search_index = true
# When set to "false", Sitemap.xml is not generated
# [Cela hint] Cela will enable this feature by default
# generate_sitemap = true
# When set to "false", robots.txt is not generated
# [Cela hint] Cela will enable this feature by default
# generate_robots_txt = true
# Configuration of the Markdown rendering
[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
# When set to "true", emoji aliases translated to their corresponding
# Unicode emoji equivalent in the rendered Markdown files. (e.g.: :smile: => 😄)
render_emoji = true
# Whether smart punctuation is enabled (changing quotes, dashes, dots in their typographic form)
# For example, `...` into `…`, `"quote"` into `“curly”` etc
smart_punctuation = false
# Whether footnotes are rendered in the GitHub-style (at the bottom, with back references) or plain (in the place, where they are defined)
# Default to open
# Reference [Github Docs](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#footnotes)
bottom_footnotes = true
[slugify]
# default is on
paths = "on"
# default is on (slugify the categories and tags ..)
taxonomies = "on"
# Whether to remove date prefixes for page path slugs.
# For example, content/posts/2016-10-08_a-post-with-dates.md => posts/a-post-with-dates
# When true, content/posts/2016-10-08_a-post-with-dates.md => posts/2016-10-08-a-post-with-dates
paths_keep_dates = false
[extra]
# Put all your custom variables here
# Whether open the TOC on each page
toc_open = false
# Whether to use mathjax on each page
# default false
enable_mathjax = false
[extra.cela]
# The template title (shown in home page )
header_title = "Cela Template"
default_keywords = ["Rust zola blog", "cela theme"]
icon = "svg/cela_new_small_rec.svg"
icon_dark = "svg/cela_new_small_rec.svg"
favicon = "favicon.ico"
favicon16x16 = "favicon-16x16.png"
favicon32x32 = "favicon-32x32.png"
date_format = "%Y-%m-%d"
navigation = [
{ path = "/", title = "Archive" },
{ path = "/tags", title = "Tags" },
{ path = "/categories", title = "Categories" },
{path = "#", title = "Search"},
{ path = "/robot", title = "Robot", is_robot = true},
{ path = "https://getzola.org/", title = "Zola", is_external = true }
]
home_title = "Cela Template"
home_content = "Welcome to a demo of the <b>Cela</b> theme!<br><b>Cela</b> is a simple and lightweight theme.<br>If you like it, Please give a 🌟 on Github :)"
# The default home directory you will write your blog post content
# This will be used to generate the home page (with subsections) posts list
# If you set this to "", the all the content under "content" will be shown (not recommand)
# If you set this to "blog", the all the content under "content/blog" will be shown (recommand)
home_content_dir = "blog"
# TODO fix "" empty string
home_list_style = "default"
social_icons = [
{ path = "https://github.com/", title = "GitHub", icon = "github" },
{ path = "https://scholar.google.com/", title = "Google Scholar", icon = "googlescholar"},
{ path = "https://sg.linkedin.com/", title = "Linkedin", icon = "linkedin"},
{ path = "[email protected]", title = "Email", icon = "email"},
{ path = "https://www.wikipedia.org", title = "Wiki", icon = "wiki" },
{ path = "/atom.xml", title = "RSS", icon = "rss" },
]
taxonomies_desc = []
taxonomies_tail = [
{name = "tags", emoji = "🏷️"},
{name = "categories", emoji = "📂"},
]
# Trigger when readers click the "suggest changes" on each page
# it can be
# - an email address (e.g. "mailto:[email protected]" )
# - a github or gitlab repo link (e.g. "https://github.com/<your-username>/<your-source>/tree/main")
# if your blog source is public, cela will try to find the orinal page with its relative path
# edit_post_url = "mailto:[email protected]"
edit_post_url = "https://github.com/your-username/your-source/tree/main"
show_cela_logo = true
show_code_copy_buttons = true
show_post_edit_button = true
show_post_meta = true
show_post_nav_links = true
show_reading_time = true
show_scroll_to_top = true
show_taxonomies_description = true
show_taxonomies_tail = true
show_theme_toggle = true
show_header_title = false
show_toc_default = true
show_word_count = true
[extra.cela.color]
default_theme = "light"
[extra.cela.global]
# Whether to show the original title defined in base configure
title_show = true
# Title prefix/delimiter before page or section title
title_prefix = "🌟"
# The internationalization directory for multi-language support
i18n_dir = "i18n_dir"
# # TODO
# # Whether to load social icons (default = true)
# social_icon = true
# # Specify the directory of social icon (default = "") If set, the original social_icon macro will not be loaded and used
# social_icon_dir = "auto"