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:
hugoVersion:
extended: true
min: "0.87.0"
baseurl: https://example.com
languageCode: zh-cn
theme: hugo-theme-stack
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:
mainSections:
@ -11,7 +30,7 @@ params:
favicon:
footer:
since:
since: 2020
customText:
dateFormat:
@ -19,8 +38,8 @@ params:
lastUpdated: Jan 02, 2006 15:04 MST
sidebar:
emoji:
subtitle:
emoji: 🍥
subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
avatar:
enabled: true
local: true
@ -31,11 +50,11 @@ params:
toc: true
readingTime: true
license:
enabled: false
enabled: true
default: Licensed under CC BY-NC-SA 4.0
comments:
enabled: false
enabled: true
provider: disqus
disqusjs:
@ -85,6 +104,12 @@ params:
path:
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:
repo:
repoID:
@ -97,16 +122,15 @@ params:
emitMetadata: 0
gitalk:
owner:
admin:
repo:
clientID:
clientSecret:
owner:
admin:
repo:
clientID:
clientSecret:
cusdis:
host:
id:
host:
id:
widgets:
enabled:
- search
@ -145,3 +169,53 @@ params:
enabled: true
content:
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