Skip to content

Commit 467c7b2

Browse files
authored
Removed deprecated site.social use (#41)
1 parent 7d1bd79 commit 467c7b2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

layouts/partials/social_card.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,11 @@
7474
{{ end }}{{ end }}
7575
{{- end }}
7676

77-
{{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}}
7877
{{- $facebookAdmin := "" }}
7978
{{- with site.Params.social }}
8079
{{- if reflect.IsMap . }}
8180
{{- $facebookAdmin = .facebook_admin }}
8281
{{- end }}
83-
{{- else }}
84-
{{- with site.Social.facebook_admin }}
85-
{{- $facebookAdmin = . }}
86-
{{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }}
87-
{{- end }}
8882
{{- end }}
8983

9084
{{- /* Facebook Page Admin ID for Domain Insights */}}
@@ -97,17 +91,11 @@
9791
<meta name="twitter:title" content="{{ .Title }}"/>
9892
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>
9993

100-
{{- /* Deprecate site.Social.twitter in favor of site.Params.social.twitter */}}
10194
{{- $twitterSite := "" }}
10295
{{- with site.Params.social }}
10396
{{- if reflect.IsMap . }}
10497
{{- $twitterSite = .twitter }}
10598
{{- end }}
106-
{{- else }}
107-
{{- with site.Social.twitter }}
108-
{{- $twitterSite = . }}
109-
{{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }}
110-
{{- end }}
11199
{{- end }}
112100

113101
{{- with $twitterSite }}

0 commit comments

Comments
 (0)