compile
This commit is contained in:
		| @@ -50,14 +50,14 @@ | ||||
| {{ end }}{{ end }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}} | ||||
| {{- /* Deprecate site.Params.Social.facebook_admin in favor of site.Params.social.facebook_admin */}} | ||||
| {{- $facebookAdmin := "" }} | ||||
| {{- with site.Params.social }} | ||||
|   {{- if reflect.IsMap . }} | ||||
|     {{- $facebookAdmin = .facebook_admin }} | ||||
|   {{- end }} | ||||
| {{- else }} | ||||
|   {{- with site.Social.facebook_admin }} | ||||
|   {{- with site.Params.Social.facebook_admin }} | ||||
|     {{- $facebookAdmin = . }} | ||||
|     {{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }} | ||||
|   {{- end }} | ||||
|   | ||||
| @@ -28,14 +28,14 @@ | ||||
| {{- 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 -}}"/> | ||||
| {{- /* Deprecate site.Social.twitter in favor of site.Params.social.twitter */}} | ||||
| {{- /* Deprecate site.Params.Social.twitter in favor of site.Params.social.twitter */}} | ||||
| {{- $twitterSite := "" }} | ||||
| {{- with site.Params.social }} | ||||
|   {{- if reflect.IsMap . }} | ||||
|     {{- $twitterSite = .twitter }} | ||||
|   {{- end }} | ||||
| {{- else }} | ||||
|   {{- with site.Social.twitter }} | ||||
|   {{- with site.Params.Social.twitter }} | ||||
|     {{- $twitterSite = . }} | ||||
|     {{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }} | ||||
|   {{- end }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user