Skip to content

Commit 5ed55ed

Browse files
authoredAug 27, 2024··
fix: replace deprecated .Site.IsMultiLingual and .Site.Social (#862)
1 parent faf3af6 commit 5ed55ed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

Diff for: ‎layouts/partials/language.html

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

Diff for: ‎layouts/partials/microformats/opengraph.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@
6363
{{- end }}
6464

6565
{{- /* Facebook Page Admin ID for Domain Insights */}}
66-
{{- with .Site.Social.facebook_admin }}
66+
{{- with .Site.Params.facebook_admin }}
6767
<meta property="fb:admins" content="{{ . }}" />
6868
{{- end }}

Diff for: ‎layouts/partials/microformats/twitter_cards.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
{{- with partial "utils/description" . }}
1111
<meta name="twitter:description" content="{{ . | plainify | htmlUnescape | chomp }}" />
1212
{{- end }}
13-
{{- with .Site.Social.twitter -}}
13+
{{- with .Site.Params.twitter -}}
1414
<meta name="twitter:site" content="@{{ . }}" />
1515
{{- end }}

0 commit comments

Comments
 (0)
Please sign in to comment.