Skip to content

Commit

Permalink
fix site.social deprecation (#91)
Browse files Browse the repository at this point in the history
change `.Site.Social` to `.Site.Params.Social`
  • Loading branch information
caprinux authored Oct 20, 2024
1 parent ae4be2d commit 0e04c26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/PaperMod/layouts/partials/templates/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,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 }}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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 -}}

0 comments on commit 0e04c26

Please sign in to comment.