-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.toml
192 lines (151 loc) · 5.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
title = "LUG Weekly"
theme = "bilberry-hugo-theme"
baseURL = "https://weekly.hitsz.org/"
# Generate the robots.txt file for SEO
enableRobotsTXT = true
# Change to one of your content languages defined at the end.
DefaultContentLanguage = "zh-cn"
# Enable / Disable Google Analytics statistics for your site
googleAnalytics = ""
# Enable / Disable comments on the articles via Disqus.
disqusShortname = ""
[params]
# Custom CSS / JS modules that will be imported by the template.
# Files are relative to the static/ directory or a URL.
# Files are imported in the order they appear here, after
# theme.css and theme.js, respectively.
css_modules = []
js_modules = []
# Description and meta data for the search engines
author = "HITsz LUG"
description = "HITsz LUG 周报"
keywords = ["blog", "weekly", "news", "technology", "linux", "computer"]
# How many articles should be displayed at once?
paginate = 7
# Enable / Disable MathJax
enable_mathjax = false
# Enable / Disable algolia search
algolia_search = true
algolia_appId = "PSCK7OYZ69"
algolia_apiKey = "2a4435c26d4a6227d41caa9bf6cb59ee"
algolia_indexName = "hitsz-lug-weekly"
# Set this option to false if you want to search within all articles in all languages at once
algolia_currentLanguageOnly = false
# Enable / Disable comments on the articles via commento
# commentoJsURL = "https://commento.lednerb.de/js/commento.js"
# Enable / Disable Giscus comments
giscus = false
giscusCategory = "[ENTER CATEGORY NAME HERE]"
giscusCategoryId = "[ENTER CATEGORY ID HERE]"
giscusCrossOrigin = "anonymous"
giscusEmitMetadata = "0"
giscusJsUrl = "https://giscus.app/client.js"
giscusLanguage = "en"
giscusMapping = "pathname"
giscusReactions = "1"
giscusRepository = "[ENTER REPO HERE]"
giscusRepositoryId = "[ENTER REPO ID HERE]"
giscusTheme = "light"
# Enable / Disable Utterances comments
utterances = false
utterancesCrossOrigin = "anonymous"
utterancesIssueTerm = "pathname"
utterancesJsUrl = "https://utteranc.es/client.js"
utterancesLabel = "Comment"
utterancesRepository = "[ENTER REPO HERE]"
utterancesTheme = "github-light"
# Media configuration
# let hugo automatically resize and crop your images to the correct sizes
# NB: When enabled the image files get renamed by adding additional information,
# even if the image has the correct sizes.
resizeImages = true
# Header configuration
# your subtitle if you want to use any
subtitle = "HITsz LUG 每周的奇闻轶事"
# if you want to use libravatar or gravatar for the header image
# avatarEmail = "[email protected]"
# set an path to the image file you want to use | overwrites avatar by email
customImage = "/assets/logo.svg"
# define the icon you want to use for the overlay for the customImage or avatar.
overlayIcon = "fa-home"
# always display the top navigation (with pages and search) on non-mobile screens
permanentTopNav = true
# always display the top navigation when scrolling
# works only with permanentTopNav = true
stickyNav = false
# show a language chooser in the header
showHeaderLanguageChooser = false
# Content configuration
# Enable an optional pinned page to display at the top of the index
# pinnedPost = "/article/installing-bilberry-theme/"
# Set to true to pin only to the first page, false to all pages
# pinOnlyToFirstPage = true
# enable automatic localization of the article's PublishedDate with momentjs
enableMomentJs = true
# customize the date format | only works if momentjs is disabled | only works with English month names
# you can customize it with the options you find here:
# https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference
dateFormat = "2006-01-02"
# display the estimated reading time for an article
showReadingTime = false
# Minimum word count to display the Table of Contents
tocMinWordCount = 400
# Footer configuration
showFooter = true
# How many articles should be displayed at latest posts in the footer?
# Set to -1 to hide the 'Latest Posts' column
amountLatestPostsInFooter = 5
# How many categories should be displayed in the footer section?
# Set to -1 to hide the 'Categories' column
amountCategoriesInFooter = 7
# show a language chooser in the footer
showFooterLanguageChooser = false
# social media profile urls for the footer links
showSocialMedia = true
# show an archive link in the footer
showArchive = true
# archive grouping: "2006" by year, "2006-01" by month
archiveDateGrouping = "2006-01"
# define your links with FontAwesome 5 (only free icons are supported)
# all icons https://fontawesome.com/icons?d=gallery&m=free
# brand icons https://fontawesome.com/icons?d=gallery&s=brands&m=free
socialMediaLinks = [
{ link = "https://github.com/hitszlug", icon = "fab fa-github" },
{ link = "https://t.me/hitszlug", icon = "fab fa-telegram" },
{ link = "https://qm.qq.com/cgi-bin/qm/qr?k=EmOyWeZrOaOeSoVrVLoozyKYdvjOia_t", icon = "fab fa-qq" },
]
# credits line configuration
copyrightBy = "CC BY-NC-SA 4.0 by HITsz LUG"
copyrightUrl = "https://github.com/hitszlug"
copyrightUseCurrentYear = true # set to true to always display the current year in the copyright
copyrightYearOverride = "2022"
creditsText = "Modified Bilberry"
creditsUrl = "https://github.com/hitszlug/bilberry-hugo-theme"
# customize your available languages for your multi-lingual site
# or delete the [Languages] blog to use the theme with only one supported language
# [Languages]
# [Languages.zh-cn]
# weight = 1
hasCJKLanguage = true
# don't change anything below
[taxonomies]
author = "author"
category = "categories"
series = "series"
tag = "tags"
[outputs]
home = ["HTML", "JSON", "RSS"]
page = ["HTML"]
[markup]
defaultMarkdownHandler = 'goldmark'
[markup.goldmark]
[markup.goldmark.renderer]
# Change to 'true' if you need to render raw HTML within your markdown content
unsafe = true
[markup.tableOfContents]
endLevel = 5
ordered = false
startLevel = 2
# Fix magic
[markup.highlight]
codeFences = false