Use new function for newer Hugo versions
This commit is contained in:
parent
c67c031648
commit
609e401328
2 changed files with 2 additions and 2 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue