fix: inline stack theme
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
baseURL = "https://demo.stack.cai.im/"
|
||||
locale = "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
|
||||
|
||||
[[module.imports]]
|
||||
path = "github.com/CaiJimmy/hugo-theme-stack/v3"
|
||||
|
||||
[pagination]
|
||||
pagerSize = 3
|
||||
|
||||
[permalinks]
|
||||
post = "/p/:slug/"
|
||||
page = "/:slug/"
|
||||
|
||||
[services.disqus]
|
||||
shortname = "hugo-theme-stack"
|
||||
@@ -0,0 +1,31 @@
|
||||
[en]
|
||||
label = "English"
|
||||
title = "Hugo Theme Stack"
|
||||
weight = 1
|
||||
|
||||
[en.params.sidebar]
|
||||
subtitle = "Card-style Hugo theme designed for bloggers"
|
||||
|
||||
[zh]
|
||||
label = "简体中文"
|
||||
title = "Hugo 主题 Stack"
|
||||
weight = 2
|
||||
|
||||
[zh.params.sidebar]
|
||||
subtitle = "为博客设计的卡片式 Hugo 主题"
|
||||
|
||||
[zh-hant-tw]
|
||||
label = "正體中文"
|
||||
title = "Hugo 主題 Stack"
|
||||
weight = 3
|
||||
|
||||
[zh-hant-tw.params.sidebar]
|
||||
subtitle = "為博客設計的卡片式 Hugo 主題"
|
||||
|
||||
[ja]
|
||||
label = "日本語"
|
||||
title = "Hugo Theme Stack"
|
||||
weight = 4
|
||||
|
||||
[ja.params.sidebar]
|
||||
subtitle = "ブログ用のカードスタイルの Hugo テーマ"
|
||||
@@ -0,0 +1,26 @@
|
||||
[goldmark]
|
||||
[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
|
||||
|
||||
[tableOfContents]
|
||||
endLevel = 4
|
||||
ordered = true
|
||||
startLevel = 2
|
||||
|
||||
[highlight]
|
||||
noClasses = false
|
||||
codeFences = true
|
||||
guessSyntax = true
|
||||
lineNoStart = 1
|
||||
lineNos = true
|
||||
lineNumbersInTable = true
|
||||
tabWidth = 4
|
||||
@@ -0,0 +1,15 @@
|
||||
[[social]]
|
||||
identifier = "github"
|
||||
name = "GitHub"
|
||||
url = "https://github.com/CaiJimmy/hugo-theme-stack"
|
||||
|
||||
[social.params]
|
||||
icon = "brand-github"
|
||||
|
||||
[[social]]
|
||||
identifier = "twitter"
|
||||
name = "Twitter"
|
||||
url = "https://twitter.com"
|
||||
|
||||
[social.params]
|
||||
icon = "brand-twitter"
|
||||
@@ -0,0 +1,39 @@
|
||||
mainSections = ["post"]
|
||||
rssFullContent = true
|
||||
favicon = "img/avatar.png"
|
||||
|
||||
[footer]
|
||||
since = 2020
|
||||
|
||||
[sidebar]
|
||||
emoji = "✏️"
|
||||
subtitle = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
||||
avatar = "img/avatar.png"
|
||||
|
||||
[article]
|
||||
[article.license]
|
||||
enabled = true
|
||||
default = "Licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)"
|
||||
|
||||
[widgets]
|
||||
homepage = [
|
||||
{ type = "search" },
|
||||
{ type = "archives", params = { limit = 5 } },
|
||||
{ type = "categories", params = { limit = 10 } },
|
||||
{ type = "tag-cloud", params = { limit = 10 } },
|
||||
]
|
||||
page = [{ type = "toc" }]
|
||||
|
||||
[comments]
|
||||
# See complete configuration in config/_default/params.toml
|
||||
enabled = true
|
||||
provider = "disqus"
|
||||
|
||||
# GDPR Cookie Consent Configuration
|
||||
# When enabled, analytics and functional cookies require user consent
|
||||
[cookies]
|
||||
enabled = false
|
||||
|
||||
[cookies.categories]
|
||||
analytics = true
|
||||
functional = true
|
||||
@@ -0,0 +1,7 @@
|
||||
includeNewer = true
|
||||
threshold = 60
|
||||
toLower = false
|
||||
indices = [
|
||||
{ name = "tags", weight = 100 },
|
||||
{ name = "categories", weight = 200 },
|
||||
]
|
||||
Reference in New Issue
Block a user