Update config.yaml

This commit is contained in:
Limbaud 2022-02-05 09:19:40 +08:00 committed by GitHub
parent 67d5156507
commit 774e16a5b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,26 @@
module: baseurl: https://example.com
hugoVersion: languageCode: zh-cn
extended: true theme: hugo-theme-stack
min: "0.87.0" paginate: 5
title: Example Site
# Change it to your Disqus shortname before using
disqusShortname: hugo-theme-stack
# GA Tracking ID
googleAnalytics:
# Theme i18n support
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, es, de, nl, it, th, el, uk
DefaultContentLanguage: en
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
# This will make .Summary and .WordCount behave correctly for CJK languages.
hasCJKLanguage: false
permalinks:
post: /p/:slug/
page: /:slug/
params: params:
mainSections: mainSections:
@ -11,7 +30,7 @@ params:
favicon: favicon:
footer: footer:
since: since: 2020
customText: customText:
dateFormat: dateFormat:
@ -19,8 +38,8 @@ params:
lastUpdated: Jan 02, 2006 15:04 MST lastUpdated: Jan 02, 2006 15:04 MST
sidebar: sidebar:
emoji: emoji: 🍥
subtitle: subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
avatar: avatar:
enabled: true enabled: true
local: true local: true
@ -31,11 +50,11 @@ params:
toc: true toc: true
readingTime: true readingTime: true
license: license:
enabled: false enabled: true
default: Licensed under CC BY-NC-SA 4.0 default: Licensed under CC BY-NC-SA 4.0
comments: comments:
enabled: false enabled: true
provider: disqus provider: disqus
disqusjs: disqusjs:
@ -85,6 +104,12 @@ params:
path: path:
lang: lang:
# See https://cactus.chat/docs/reference/web-client/#configuration for description of the various options
cactus:
defaultHomeserverUrl: "https://matrix.cactus.chat:8448"
serverName: "cactus.chat"
siteName: "" # You must insert a unique identifier here matching the one you registered (See https://cactus.chat/docs/getting-started/quick-start/#register-your-site)
giscus: giscus:
repo: repo:
repoID: repoID:
@ -106,7 +131,6 @@ params:
cusdis: cusdis:
host: host:
id: id:
widgets: widgets:
enabled: enabled:
- search - search
@ -145,3 +169,53 @@ params:
enabled: true enabled: true
content: content:
enabled: true enabled: true
### Custom menu
### See https://docs.stack.jimmycai.com/configuration/custom-menu.html
### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter
menu:
main:
- identifier: home
name: Home
url: /
weight: -100
params:
### For demonstration purpose, the home link will be open in a new tab
newTab: true
icon: home
social:
- identifier: github
name: GitHub
url: https://github.com/CaiJimmy/hugo-theme-stack
params:
icon: brand-github
- identifier: twitter
name: Twitter
url: https://twitter.com
params:
icon: brand-twitter
related:
includeNewer: true
threshold: 60
toLower: false
indices:
- name: tags
weight: 100
- name: categories
weight: 200
markup:
goldmark:
renderer:
## Set to true if you have HTML content inside Markdown
unsafe: false
tableOfContents:
endLevel: 4
ordered: true
startLevel: 2
highlight:
noClasses: false