split configs
This commit is contained in:
9
config/_default/languages.toml
Normal file
9
config/_default/languages.toml
Normal file
@ -0,0 +1,9 @@
|
||||
[en]
|
||||
languageName = "English"
|
||||
languageCode = "en"
|
||||
weight = 2
|
||||
|
||||
[zh-CN]
|
||||
languageName = "中文"
|
||||
languageCode = "zh-CN"
|
||||
weight = 1
|
31
config/_default/params.toml
Normal file
31
config/_default/params.toml
Normal file
@ -0,0 +1,31 @@
|
||||
theme_version = "5.2.0"
|
||||
toc = true
|
||||
avatar = "img/commons/avatar.jpg"
|
||||
tagline = "A text-focused Jekyll theme"
|
||||
|
||||
[assets]
|
||||
self_host = false
|
||||
|
||||
[social]
|
||||
name = "Yifan"
|
||||
url = "https://github.com/geekifan"
|
||||
|
||||
[[social.links]]
|
||||
type = "github"
|
||||
id = "yourusername" # 或直接使用 url = "https://github.com/yourusername"
|
||||
icon = "fab fa-github"
|
||||
|
||||
[[social.links]]
|
||||
type = "twitter"
|
||||
id = "yourhandle"
|
||||
icon = "fab fa-twitter"
|
||||
|
||||
[[social.links]]
|
||||
type = "email"
|
||||
id = "your.email@example.com" # 会被自动分割处理
|
||||
icon = "fas fa-envelope"
|
||||
|
||||
[[social.links]]
|
||||
type = "rss"
|
||||
icon = "fas fa-rss"
|
||||
noblank = true # 不在新窗口打开
|
43
hugo.toml
43
hugo.toml
@ -4,17 +4,6 @@ enableGitInfo = true
|
||||
defaultContentLanguage = "en"
|
||||
defaultContentLanguageInSubdir = false
|
||||
|
||||
[languages]
|
||||
[languages.zh-CN]
|
||||
languageName = "中文"
|
||||
languageCode = "zh-CN"
|
||||
weight = 1
|
||||
|
||||
[languages.en]
|
||||
languageName = "English"
|
||||
languageCode = "en"
|
||||
weight = 2
|
||||
|
||||
[pagination]
|
||||
pagerSize = 5
|
||||
|
||||
@ -48,35 +37,3 @@ defaultContentLanguageInSubdir = false
|
||||
[[module.imports]]
|
||||
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
|
||||
|
||||
|
||||
[params]
|
||||
theme_version = "5.2.0"
|
||||
toc = true
|
||||
avatar = "img/commons/avatar.jpg"
|
||||
tagline = "A text-focused Jekyll theme"
|
||||
|
||||
[params.assets]
|
||||
self_host = false
|
||||
|
||||
[params.social]
|
||||
name = "Yifan"
|
||||
url = "https://github.com/geekifan"
|
||||
[[params.social.links]]
|
||||
type = "github"
|
||||
id = "yourusername" # 或直接使用 url = "https://github.com/yourusername"
|
||||
icon = "fab fa-github"
|
||||
|
||||
[[params.social.links]]
|
||||
type = "twitter"
|
||||
id = "yourhandle"
|
||||
icon = "fab fa-twitter"
|
||||
|
||||
[[params.social.links]]
|
||||
type = "email"
|
||||
id = "your.email@example.com" # 会被自动分割处理
|
||||
icon = "fas fa-envelope"
|
||||
|
||||
[[params.social.links]]
|
||||
type = "rss"
|
||||
icon = "fas fa-rss"
|
||||
noblank = true # 不在新窗口打开
|
Reference in New Issue
Block a user