Skip to content

Commit 4bb531b

Browse files
committed
🗑️ Fix: fix config and remove deprecated functions
1 parent 628745a commit 4bb531b

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

hugo.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
baseURL: https://zhuzi.dev/
22
title: "Blah Blah Booooom"
33
theme: ["PaperMod"]
4-
paginate: 10
4+
# https://gohugo.io/templates/pagination/
5+
pagination:
6+
pagerSize: 10
57
timeout: "90s"
68

79
enableRobotsTXT: true
@@ -182,3 +184,6 @@ markup:
182184
# guessSyntax: true
183185
# lineNos: true
184186
# style: monokai
187+
goldmark:
188+
renderer:
189+
unsafe: true

themes/PaperMod/layouts/partials/templates/opengraph.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@
5656
{{- if reflect.IsMap . }}
5757
{{- $facebookAdmin = .facebook_admin }}
5858
{{- end }}
59-
{{- else }}
60-
{{- with site.Social.facebook_admin }}
61-
{{- $facebookAdmin = . }}
62-
{{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }}
63-
{{- end }}
6459
{{- end }}
6560

6661
{{- /* Facebook Page Admin ID for Domain Insights */}}

themes/PaperMod/layouts/partials/templates/twitter_cards.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
{{- if reflect.IsMap . }}
3535
{{- $twitterSite = .twitter }}
3636
{{- end }}
37-
{{- else }}
38-
{{- with site.Social.twitter }}
39-
{{- $twitterSite = . }}
40-
{{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }}
41-
{{- end }}
4237
{{- end }}
4338

4439
{{- with $twitterSite }}

0 commit comments

Comments
 (0)