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