Use new function for newer Hugo versions

This commit is contained in:
Michael Boelen 2024-10-18 11:54:44 +00:00
parent c67c031648
commit 609e401328
2 changed files with 2 additions and 2 deletions

View file

@ -39,4 +39,4 @@
{{ end }}{{ end }}
{{- /* Facebook Page Admin ID for Domain Insights */}}
{{- with .Site.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}">{{ end }}
{{- with .Site.Params.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}">{{ end }}

View file

@ -17,6 +17,6 @@
{{- end }}
<meta name="twitter:title" content="{{ .Title }}">
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}">
{{ with .Site.Social.twitter -}}
{{ with .Site.Params.Social.twitter -}}
<meta name="twitter:site" content="@{{ . }}">
{{ end -}}