style: format TOML files (#1266)
* style: format TOML files * style: format wrangler.toml
This commit is contained in:
+63
-69
@@ -1,11 +1,10 @@
|
|||||||
mainSections = ["post"]
|
mainSections = ["post"]
|
||||||
featuredImageField = "image"
|
featuredImageField = "image"
|
||||||
rssFullContent = true
|
rssFullContent = true
|
||||||
|
|
||||||
# Accepted values: "default", "lastmod"
|
# Accepted values: "default", "lastmod"
|
||||||
# default = see https://gohugo.io/quick-reference/glossary/#default-sort-order
|
# default = see https://gohugo.io/quick-reference/glossary/#default-sort-order
|
||||||
# lastmod = sort by last modified date, in descending order
|
# lastmod = sort by last modified date, in descending order
|
||||||
SortBy = "default"
|
SortBy = "default"
|
||||||
|
|
||||||
[footer]
|
[footer]
|
||||||
since = 2026
|
since = 2026
|
||||||
@@ -34,20 +33,20 @@ SortBy = "default"
|
|||||||
# Theme auto-switches based on site light/dark mode
|
# Theme auto-switches based on site light/dark mode
|
||||||
[article.mermaid]
|
[article.mermaid]
|
||||||
# Visual style: classic or handDrawn (sketch style)
|
# Visual style: classic or handDrawn (sketch style)
|
||||||
look = "classic"
|
look = "classic"
|
||||||
# Theme for light mode: default, neutral, dark, forest, base, null
|
# Theme for light mode: default, neutral, dark, forest, base, null
|
||||||
lightTheme = "default"
|
lightTheme = "default"
|
||||||
# Theme for dark mode: default, neutral, dark, forest, base, null
|
# Theme for dark mode: default, neutral, dark, forest, base, null
|
||||||
darkTheme = "dark"
|
darkTheme = "dark"
|
||||||
# Custom theme variables for light mode (only works with lightTheme: base)
|
# Custom theme variables for light mode (only works with lightTheme: base)
|
||||||
# lightThemeVariables = { primaryColor = "#ff0000" }
|
# lightThemeVariables = { primaryColor = "#ff0000" }
|
||||||
# Custom theme variables for dark mode (only works with darkTheme: base)
|
# Custom theme variables for dark mode (only works with darkTheme: base)
|
||||||
# darkThemeVariables = { primaryColor = "#00ff00" }
|
# darkThemeVariables = { primaryColor = "#00ff00" }
|
||||||
# Security level: strict (default), loose, antiscript, sandbox
|
# Security level: strict (default), loose, antiscript, sandbox
|
||||||
# Set to "loose" to enable HTML labels like <br/>
|
# Set to "loose" to enable HTML labels like <br/>
|
||||||
securityLevel = "strict"
|
securityLevel = "strict"
|
||||||
# Enable HTML labels in diagrams (requires securityLevel: loose)
|
# Enable HTML labels in diagrams (requires securityLevel: loose)
|
||||||
htmlLabels = true
|
htmlLabels = true
|
||||||
# Make diagram backgrounds transparent (default: false)
|
# Make diagram backgrounds transparent (default: false)
|
||||||
# Can also be set per-diagram with %%transparent%% directive
|
# Can also be set per-diagram with %%transparent%% directive
|
||||||
transparentBackground = false
|
transparentBackground = false
|
||||||
@@ -71,106 +70,101 @@ SortBy = "default"
|
|||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[comments]
|
[comments]
|
||||||
enabled = true
|
enabled = true
|
||||||
provider = "disqus"
|
provider = "disqus"
|
||||||
|
|
||||||
[comments.disqusjs]
|
[comments.disqusjs]
|
||||||
shortname = ""
|
shortname = ""
|
||||||
apiUrl = ""
|
apiUrl = ""
|
||||||
apiKey = ""
|
apiKey = ""
|
||||||
admin = ""
|
admin = ""
|
||||||
adminLabel = ""
|
adminLabel = ""
|
||||||
|
|
||||||
[comments.utterances]
|
[comments.utterances]
|
||||||
repo = ""
|
repo = ""
|
||||||
issueTerm = "pathname"
|
issueTerm = "pathname"
|
||||||
label = ""
|
label = ""
|
||||||
|
|
||||||
[comments.beaudar]
|
[comments.beaudar]
|
||||||
repo = ""
|
repo = ""
|
||||||
issueTerm = "pathname"
|
issueTerm = "pathname"
|
||||||
label = ""
|
label = ""
|
||||||
theme = ""
|
theme = ""
|
||||||
|
|
||||||
[comments.remark42]
|
[comments.remark42]
|
||||||
host = ""
|
host = ""
|
||||||
site = ""
|
site = ""
|
||||||
locale = "en"
|
locale = "en"
|
||||||
max_shown_comments = 15
|
max_shown_comments = 15
|
||||||
show_email_subscription = true
|
show_email_subscription = true
|
||||||
|
|
||||||
[comments.vssue]
|
[comments.vssue]
|
||||||
platform = ""
|
platform = ""
|
||||||
owner = ""
|
owner = ""
|
||||||
repo = ""
|
repo = ""
|
||||||
clientId = ""
|
clientId = ""
|
||||||
clientSecret = ""
|
clientSecret = ""
|
||||||
autoCreateIssue = false
|
autoCreateIssue = false
|
||||||
|
|
||||||
# Waline client configuration see: https://waline.js.org/en/reference/component.html
|
# Waline client configuration see: https://waline.js.org/en/reference/component.html
|
||||||
[comments.waline]
|
[comments.waline]
|
||||||
serverURL = ""
|
serverURL = ""
|
||||||
lang = ""
|
lang = ""
|
||||||
pageview = ""
|
pageview = ""
|
||||||
emoji = [
|
emoji = ["https://unpkg.com/@waline/emojis@1.0.1/weibo"]
|
||||||
"https://unpkg.com/@waline/emojis@1.0.1/weibo"
|
requiredMeta = ["name", "email", "url"]
|
||||||
]
|
|
||||||
requiredMeta = [
|
|
||||||
"name",
|
|
||||||
"email",
|
|
||||||
"url"
|
|
||||||
]
|
|
||||||
[comments.waline.locale]
|
[comments.waline.locale]
|
||||||
admin = "Admin"
|
admin = "Admin"
|
||||||
placeholder = ""
|
placeholder = ""
|
||||||
|
|
||||||
[comments.twikoo]
|
[comments.twikoo]
|
||||||
envId = ""
|
envId = ""
|
||||||
region = ""
|
region = ""
|
||||||
path = ""
|
path = ""
|
||||||
lang = ""
|
lang = ""
|
||||||
|
|
||||||
# See https://cactus.chat/docs/reference/web-client/#configuration for description of the various options
|
# See https://cactus.chat/docs/reference/web-client/#configuration for description of the various options
|
||||||
[comments.cactus]
|
[comments.cactus]
|
||||||
defaultHomeserverUrl = "https://matrix.cactus.chat:8448"
|
defaultHomeserverUrl = "https://matrix.cactus.chat:8448"
|
||||||
serverName = "cactus.chat"
|
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)
|
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)
|
||||||
|
|
||||||
[comments.giscus]
|
[comments.giscus]
|
||||||
repo = ""
|
repo = ""
|
||||||
repoID = ""
|
repoID = ""
|
||||||
category = ""
|
category = ""
|
||||||
categoryID = ""
|
categoryID = ""
|
||||||
mapping = "title"
|
mapping = "title"
|
||||||
lightTheme = "light"
|
lightTheme = "light"
|
||||||
darkTheme = "dark_dimmed"
|
darkTheme = "dark_dimmed"
|
||||||
reactionsEnabled = 1
|
reactionsEnabled = 1
|
||||||
emitMetadata = 0
|
emitMetadata = 0
|
||||||
inputPosition = "top"
|
inputPosition = "top"
|
||||||
lang = "en"
|
lang = "en"
|
||||||
strict = 0
|
strict = 0
|
||||||
loading = "lazy"
|
loading = "lazy"
|
||||||
|
|
||||||
[comments.gitalk]
|
[comments.gitalk]
|
||||||
owner = ""
|
owner = ""
|
||||||
admin = ""
|
admin = ""
|
||||||
repo = ""
|
repo = ""
|
||||||
clientID = ""
|
clientID = ""
|
||||||
clientSecret = ""
|
clientSecret = ""
|
||||||
proxy = ""
|
proxy = ""
|
||||||
|
|
||||||
[comments.cusdis]
|
[comments.cusdis]
|
||||||
host = "https://cusdis.com"
|
host = "https://cusdis.com"
|
||||||
id = ""
|
id = ""
|
||||||
|
|
||||||
# Comentario client configuration
|
# Comentario client configuration
|
||||||
[comments.comentario]
|
[comments.comentario]
|
||||||
url = ""
|
url = ""
|
||||||
autoInit = false
|
autoInit = false
|
||||||
autoNonInteractiveSso = false
|
autoNonInteractiveSso = false
|
||||||
cssOverride = ""
|
cssOverride = ""
|
||||||
lang = ""
|
lang = ""
|
||||||
liveUpdate = false
|
liveUpdate = false
|
||||||
maxLevel = 0
|
maxLevel = 0
|
||||||
noFonts = false
|
noFonts = false
|
||||||
theme = ""
|
theme = ""
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
baseURL = "https://demo.stack.cai.im/"
|
baseURL = "https://demo.stack.cai.im/"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
title = "Hugo Theme Stack"
|
title = "Hugo Theme Stack"
|
||||||
|
|
||||||
# Theme i18n support
|
# Theme i18n support
|
||||||
# See i18n folder for available languages
|
# See i18n folder for available languages
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
|
|
||||||
# Set hasCJKLanguage to true if DefaultContentLanguage is a CJK language
|
# Set hasCJKLanguage to true if DefaultContentLanguage is a CJK language
|
||||||
# This will make .Summary and .WordCount behave correctly
|
# This will make .Summary and .WordCount behave correctly
|
||||||
hasCJKLanguage = false
|
hasCJKLanguage = false
|
||||||
|
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = "github.com/CaiJimmy/hugo-theme-stack/v3"
|
path = "github.com/CaiJimmy/hugo-theme-stack/v3"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
languageName = "English"
|
languageName = "English"
|
||||||
title = "Hugo Theme Stack"
|
title = "Hugo Theme Stack"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[en.params.sidebar]
|
[en.params.sidebar]
|
||||||
subtitle = "Card-style Hugo theme designed for bloggers"
|
subtitle = "Card-style Hugo theme designed for bloggers"
|
||||||
|
|
||||||
@@ -9,6 +10,7 @@
|
|||||||
languageName = "简体中文"
|
languageName = "简体中文"
|
||||||
title = "Hugo 主题 Stack"
|
title = "Hugo 主题 Stack"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|
||||||
[zh.params.sidebar]
|
[zh.params.sidebar]
|
||||||
subtitle = "为博客设计的卡片式 Hugo 主题"
|
subtitle = "为博客设计的卡片式 Hugo 主题"
|
||||||
|
|
||||||
@@ -16,6 +18,7 @@
|
|||||||
languageName = "正體中文"
|
languageName = "正體中文"
|
||||||
title = "Hugo 主題 Stack"
|
title = "Hugo 主題 Stack"
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
[zh-hant-tw.params.sidebar]
|
[zh-hant-tw.params.sidebar]
|
||||||
subtitle = "為博客設計的卡片式 Hugo 主題"
|
subtitle = "為博客設計的卡片式 Hugo 主題"
|
||||||
|
|
||||||
@@ -23,5 +26,6 @@
|
|||||||
languageName = "日本語"
|
languageName = "日本語"
|
||||||
title = "Hugo Theme Stack"
|
title = "Hugo Theme Stack"
|
||||||
weight = 4
|
weight = 4
|
||||||
|
|
||||||
[ja.params.sidebar]
|
[ja.params.sidebar]
|
||||||
subtitle = "ブログ用のカードスタイルの Hugo テーマ"
|
subtitle = "ブログ用のカードスタイルの Hugo テーマ"
|
||||||
|
|||||||
@@ -2,9 +2,11 @@
|
|||||||
[goldmark.extensions]
|
[goldmark.extensions]
|
||||||
[goldmark.extensions.passthrough]
|
[goldmark.extensions.passthrough]
|
||||||
enable = true
|
enable = true
|
||||||
|
|
||||||
[goldmark.extensions.passthrough.delimiters]
|
[goldmark.extensions.passthrough.delimiters]
|
||||||
block = [["\\[", "\\]"], ["$$", "$$"]]
|
block = [["\\[", "\\]"], ["$$", "$$"]]
|
||||||
inline = [["\\(", "\\)"]]
|
inline = [["\\(", "\\)"]]
|
||||||
|
|
||||||
[goldmark.renderer]
|
[goldmark.renderer]
|
||||||
## Set to true if you have HTML content inside Markdown
|
## Set to true if you have HTML content inside Markdown
|
||||||
unsafe = true
|
unsafe = true
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
identifier = "github"
|
identifier = "github"
|
||||||
name = "GitHub"
|
name = "GitHub"
|
||||||
url = "https://github.com/CaiJimmy/hugo-theme-stack"
|
url = "https://github.com/CaiJimmy/hugo-theme-stack"
|
||||||
|
|
||||||
[social.params]
|
[social.params]
|
||||||
icon = "brand-github"
|
icon = "brand-github"
|
||||||
|
|
||||||
@@ -9,5 +10,6 @@
|
|||||||
identifier = "twitter"
|
identifier = "twitter"
|
||||||
name = "Twitter"
|
name = "Twitter"
|
||||||
url = "https://twitter.com"
|
url = "https://twitter.com"
|
||||||
|
|
||||||
[social.params]
|
[social.params]
|
||||||
icon = "brand-twitter"
|
icon = "brand-twitter"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ favicon = "img/avatar.png"
|
|||||||
{ type = "categories", params = { limit = 10 } },
|
{ type = "categories", params = { limit = 10 } },
|
||||||
{ type = "tag-cloud", params = { limit = 10 } },
|
{ type = "tag-cloud", params = { limit = 10 } },
|
||||||
]
|
]
|
||||||
page = [{ type = "toc" }]
|
page = [{ type = "toc" }]
|
||||||
|
|
||||||
[comments]
|
[comments]
|
||||||
# See complete configuration in config/_default/params.toml
|
# See complete configuration in config/_default/params.toml
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
includeNewer = true
|
includeNewer = true
|
||||||
threshold = 60
|
threshold = 60
|
||||||
toLower = false
|
toLower = false
|
||||||
|
indices = [
|
||||||
indices = [
|
|
||||||
{ name = "tags", weight = 100 },
|
{ name = "tags", weight = 100 },
|
||||||
{ name = "categories", weight = 200 },
|
{ name = "categories", weight = 200 },
|
||||||
]
|
]
|
||||||
|
|||||||
+4
-4
@@ -1,9 +1,9 @@
|
|||||||
name = "hugo-theme-stack"
|
name = "hugo-theme-stack"
|
||||||
compatibility_date = "2026-01-25"
|
compatibility_date = "2026-01-25"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
command = "chmod a+x ./.ci/build.sh && ./.ci/build.sh"
|
command = "chmod a+x ./.ci/build.sh && ./.ci/build.sh"
|
||||||
|
|
||||||
[assets]
|
[assets]
|
||||||
directory = "demo/public"
|
directory = "demo/public"
|
||||||
not_found_handling = "404-page"
|
not_found_handling = "404-page"
|
||||||
|
|||||||
Reference in New Issue
Block a user