{{ .Title }}
+ {{- /* Meta */ -}} + + {{- /* Content */ -}}@@ -43,6 +47,8 @@ {{- partial "hook/content.html" .Summary | safeHTML -}} {{- end -}}
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9fb59689..aee4015c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -38,6 +38,14 @@ dateFormatToUse = "2006-01-02" tabWidth = 4 # Goldmark is from Hugo 0.60 the default library used for 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 unsafe = true diff --git a/exampleSite/zh/config.toml b/exampleSite/zh/config.toml index d6283c4b..a9b35d86 100644 --- a/exampleSite/zh/config.toml +++ b/exampleSite/zh/config.toml @@ -38,6 +38,14 @@ dateFormatToUse = "2006-01-02" tabWidth = 4 # 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] # 是否在文档中直接使用 HTML 标签 unsafe = true diff --git a/i18n/en.toml b/i18n/en.toml index 113b5ad9..6d957055 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -46,6 +46,11 @@ other = "Powered by %s" other = "Theme - " # === partials/footer.html === +# === partials/post/share.html === +[share] +other = "Share on" +# === partials/post/share.html === + # === posts/single.html === [toc] other = "Contents" diff --git a/i18n/zh.toml b/i18n/zh.toml index d4d54097..6b2db781 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -46,6 +46,11 @@ other = "由 %s 强力驱动" other = "主题 - " # === partials/footer.html === +# === partials/post/share.html === +[share] +other = "分享到" +# === partials/post/share.html === + # === posts/single.html === [toc] other = "目录" diff --git a/layouts/404.html b/layouts/404.html index 23a7ef8c..ed901efb 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -4,19 +4,19 @@ {{- define "content" -}}
{{- T "pageNotFoundText" -}} ↩︎
@@ -43,6 +47,8 @@ {{- partial "hook/content.html" .Summary | safeHTML -}} {{- end -}}