summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2021-02-18 21:58:45 +0100
committerChristoph Cullmann <cullmann@kde.org>2021-02-18 21:58:45 +0100
commitedc2bf8eb89abf1b4aaf858c6990ae48329bd477 (patch)
tree9cfc393c5ad0ff5ee188bc3025f5612f17996dea
parente9ec93a471d9a753db01b682e75c52b32adf16f2 (diff)
improve config
-rw-r--r--config.toml67
1 files changed, 60 insertions, 7 deletions
diff --git a/config.toml b/config.toml
index 1b06e79..ddd9cd5 100644
--- a/config.toml
+++ b/config.toml
@@ -169,7 +169,7 @@ pygmentsCodefencesGuessSyntax = true
# title shown in home page (HTML format is supported)
title = ""
# subtitle shown in home page
- subtitle = "Christoph Cullmann's personal website"
+ subtitle = "Christoph Cullmann's personal web site"
# whether to use typeit animation for subtitle
typeit = true
# whether to show social links
@@ -191,15 +191,10 @@ pygmentsCodefencesGuessSyntax = true
Email = "christoph@cullmann.io"
RSS = true
-# we want raw HTML
-[markup]
- [markup.goldmark]
- [markup.goldmark.renderer]
- unsafe = true
-
# default author
[Author]
name = "Christoph Cullmann"
+ email = "christoph@cullmann.io"
[params]
# LoveIt theme version
@@ -235,6 +230,64 @@ pygmentsCodefencesGuessSyntax = true
socialShare = false
showRelatedPosts = true
+ # Cookie consent config
+ # Cookie 许可配置
+ [params.cookieconsent]
+ enable = false
+ # text strings used for Cookie consent banner
+ # 用于 Cookie 许可横幅的文本字符串
+ [params.cookieconsent.content]
+ message = ""
+ dismiss = ""
+ link = ""
+
+# Markup related configuration in Hugo
+# Hugo 解析文档的配置
+[markup]
+ # Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting)
+ # 语法高亮设置 (https://gohugo.io/content-management/syntax-highlighting)
+ [markup.highlight]
+ codeFences = true
+ guessSyntax = true
+ lineNos = true
+ lineNumbersInTable = true
+ # false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158)
+ # false 是必要的设置 (https://github.com/dillonzq/LoveIt/issues/158)
+ noClasses = false
+ # Goldmark is from Hugo 0.60 the default library used for Markdown
+ # Goldmark 是 Hugo 0.60 以来的默认 Markdown 解析库
+ [markup.goldmark]
+ [markup.goldmark.extensions]
+ definitionList = true
+ footnote = true
+ linkify = true
+ strikethrough = true
+ table = true
+ taskList = true
+ typographer = true
+ [markup.goldmark.renderer]
+ # whether to use HTML tags directly in the document
+ # 是否在文档中直接使用 HTML 标签
+ unsafe = true
+ # Table Of Contents settings
+ # 目录设置
+ [markup.tableOfContents]
+ startLevel = 2
+ endLevel = 6
+
+# Sitemap config
+# 网站地图配置
+[sitemap]
+ changefreq = "weekly"
+ filename = "sitemap.xml"
+ priority = 0.5
+
+# Permalinks config (https://gohugo.io/content-management/urls/#permalinks)
+# Permalinks 配置 (https://gohugo.io/content-management/urls/#permalinks)
+[Permalinks]
+ # posts = ":year/:month/:filename"
+ posts = ":filename"
+
# maximal privacy
[privacy]
[privacy.disqus]