refactor: config
This commit is contained in:
17
config/_default/hugo.toml
Normal file
17
config/_default/hugo.toml
Normal file
@@ -0,0 +1,17 @@
|
||||
baseURL = "https://www.taurusxin.com"
|
||||
locale = "zh"
|
||||
defaultContentLanguage = "zh"
|
||||
hasCJKLanguage = true
|
||||
theme = "hugo-theme-stack"
|
||||
title = "TaurusXin 的独立博客"
|
||||
timeout = "60s"
|
||||
|
||||
[services.disqus]
|
||||
shortname = "taurusxin"
|
||||
|
||||
[pagination]
|
||||
pagerSize = 10
|
||||
|
||||
[permalinks]
|
||||
post = "/:slug/"
|
||||
page = "/:slug/"
|
||||
16
config/_default/markup.toml
Normal file
16
config/_default/markup.toml
Normal file
@@ -0,0 +1,16 @@
|
||||
[goldmark.renderer]
|
||||
unsafe = true
|
||||
|
||||
[tableOfContents]
|
||||
endLevel = 4
|
||||
ordered = true
|
||||
startLevel = 2
|
||||
|
||||
[highlight]
|
||||
noClasses = false
|
||||
codeFences = true
|
||||
guessSyntax = true
|
||||
lineNoStart = 1
|
||||
lineNos = true
|
||||
lineNumbersInTable = true
|
||||
tabWidth = 4
|
||||
74
config/_default/menu.toml
Normal file
74
config/_default/menu.toml
Normal file
@@ -0,0 +1,74 @@
|
||||
[[main]]
|
||||
identifier = "home"
|
||||
name = "首页"
|
||||
url = "/"
|
||||
weight = 1
|
||||
[main.params]
|
||||
icon = "home"
|
||||
|
||||
[[main]]
|
||||
identifier = "moments"
|
||||
name = "拾光"
|
||||
url = "https://moments.taurusxin.com"
|
||||
weight = 5
|
||||
[main.params]
|
||||
icon = "moments"
|
||||
newTab = true
|
||||
|
||||
[[main]]
|
||||
identifier = "travellings"
|
||||
name = "开往"
|
||||
url = "https://www.travellings.cn/go.html"
|
||||
weight = 6
|
||||
[main.params]
|
||||
icon = "travellings"
|
||||
newTab = true
|
||||
|
||||
[[main]]
|
||||
identifier = "rss"
|
||||
name = "RSS"
|
||||
url = "/index.xml"
|
||||
weight = 10
|
||||
[main.params]
|
||||
icon = "rss"
|
||||
newTab = true
|
||||
|
||||
[[social]]
|
||||
identifier = "github"
|
||||
name = "GitHub"
|
||||
url = "https://github.com/taurusxin"
|
||||
weight = 1
|
||||
[social.params]
|
||||
icon = "brand-github"
|
||||
|
||||
[[social]]
|
||||
identifier = "bilibili"
|
||||
name = "Bilibili"
|
||||
url = "https://space.bilibili.com/4360325"
|
||||
weight = 2
|
||||
[social.params]
|
||||
icon = "bilibili"
|
||||
|
||||
[[social]]
|
||||
identifier = "music"
|
||||
name = "网易云音乐"
|
||||
url = "https://music.163.com/#/user/home?id=260531598"
|
||||
weight = 3
|
||||
[social.params]
|
||||
icon = "music"
|
||||
|
||||
[[social]]
|
||||
identifier = "mail"
|
||||
name = "电邮"
|
||||
url = "mailto:i@taurusxin.com"
|
||||
weight = 4
|
||||
[social.params]
|
||||
icon = "mail"
|
||||
|
||||
[[social]]
|
||||
identifier = "travellings"
|
||||
name = "开往"
|
||||
url = "https://www.travellings.cn/go.html"
|
||||
weight = 5
|
||||
[social.params]
|
||||
icon = "travellings"
|
||||
100
config/_default/params.toml
Normal file
100
config/_default/params.toml
Normal file
@@ -0,0 +1,100 @@
|
||||
mainSections = ["post"]
|
||||
featuredImageField = "image"
|
||||
rssFullContent = true
|
||||
favicon = ""
|
||||
SortBy = "default"
|
||||
|
||||
[footer]
|
||||
since = 2018
|
||||
customText = "Made with ❤️ in Hangzhou <br> <a href=\"https://beian.miit.gov.cn/\" target=\"_blank\">浙ICP备2022025362号-1</a>"
|
||||
|
||||
[dateFormat]
|
||||
published = ":date_full"
|
||||
lastUpdated = ":date_full"
|
||||
|
||||
[sidebar]
|
||||
emoji = "🍉"
|
||||
subtitle = "永远年轻 永远热泪盈眶"
|
||||
compact = false
|
||||
avatar = "img/avatar.png"
|
||||
|
||||
[article]
|
||||
headingAnchor = false
|
||||
math = false
|
||||
toc = true
|
||||
readingTime = true
|
||||
|
||||
[article.list]
|
||||
showTags = false
|
||||
|
||||
[article.license]
|
||||
enabled = true
|
||||
default = "Licensed under CC BY-NC-SA 4.0"
|
||||
|
||||
[article.mermaid]
|
||||
look = "classic"
|
||||
lightTheme = "default"
|
||||
darkTheme = "dark"
|
||||
securityLevel = "strict"
|
||||
htmlLabels = true
|
||||
transparentBackground = false
|
||||
|
||||
[article.alertIcon]
|
||||
note = ""
|
||||
tip = ""
|
||||
important = ""
|
||||
warning = "⚠️"
|
||||
caution = ""
|
||||
|
||||
[comments]
|
||||
enabled = true
|
||||
provider = "artalk"
|
||||
|
||||
[comments.artalk]
|
||||
serverUrl = "https://artalk.taurusxin.com"
|
||||
site = "TaurusXin 的独立博客"
|
||||
darkMode = "auto"
|
||||
|
||||
[widgets]
|
||||
homepage = [
|
||||
{ type = "search" },
|
||||
{ type = "archives", params = { limit = 5 } },
|
||||
{ type = "categories", params = { limit = 10 } },
|
||||
{ type = "tag-cloud", params = { limit = 10 } },
|
||||
{ type = "status", params = { start = "2018-08-04", format = "yyyy 年 MM 月 dd 日" } },
|
||||
]
|
||||
page = [
|
||||
{ type = "toc" },
|
||||
]
|
||||
|
||||
[opengraph.twitter]
|
||||
site = ""
|
||||
card = "summary_large_image"
|
||||
|
||||
[colorScheme]
|
||||
toggle = true
|
||||
default = "auto"
|
||||
|
||||
[imageProcessing]
|
||||
autoOrient = false
|
||||
|
||||
[imageProcessing.external]
|
||||
timeout = "30s"
|
||||
|
||||
[imageProcessing.thumbnail]
|
||||
enabled = true
|
||||
|
||||
[imageProcessing.content]
|
||||
widths = [800, 1600, 2400]
|
||||
enabled = false
|
||||
|
||||
[cookies]
|
||||
enabled = false
|
||||
showSettings = true
|
||||
|
||||
[cookies.categories]
|
||||
analytics = false
|
||||
functional = true
|
||||
|
||||
[render.image.externalLink]
|
||||
enabled = true
|
||||
11
config/_default/related.toml
Normal file
11
config/_default/related.toml
Normal file
@@ -0,0 +1,11 @@
|
||||
includeNewer = true
|
||||
threshold = 60
|
||||
toLower = false
|
||||
|
||||
[[indices]]
|
||||
name = "tags"
|
||||
weight = 100
|
||||
|
||||
[[indices]]
|
||||
name = "categories"
|
||||
weight = 200
|
||||
Reference in New Issue
Block a user