fix: replace deprecated .Site.IsMultiLingual and .Site.Social (#862)

This commit is contained in:
Karthik Chandy 2024-08-27 16:47:48 +10:00 committed by GitHub
parent faf3af6297
commit 5ed55ed35d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{{ if .Site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
<span class="gdoc-language">
<ul class="gdoc-language__selector" role="button" aria-pressed="false" tabindex="0">
<li>

View File

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

View File

@ -10,6 +10,6 @@
{{- with partial "utils/description" . }}
<meta name="twitter:description" content="{{ . | plainify | htmlUnescape | chomp }}" />
{{- end }}
{{- with .Site.Social.twitter -}}
{{- with .Site.Params.twitter -}}
<meta name="twitter:site" content="@{{ . }}" />
{{- end }}