mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-21 20:30:39 +00:00
fix: replace deprecated .Site.IsMultiLingual
and .Site.Social
(#862)
This commit is contained in:
parent
faf3af6297
commit
5ed55ed35d
@ -1,4 +1,4 @@
|
|||||||
{{ if .Site.IsMultiLingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
<span class="gdoc-language">
|
<span class="gdoc-language">
|
||||||
<ul class="gdoc-language__selector" role="button" aria-pressed="false" tabindex="0">
|
<ul class="gdoc-language__selector" role="button" aria-pressed="false" tabindex="0">
|
||||||
<li>
|
<li>
|
||||||
|
@ -63,6 +63,6 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- /* Facebook Page Admin ID for Domain Insights */}}
|
{{- /* Facebook Page Admin ID for Domain Insights */}}
|
||||||
{{- with .Site.Social.facebook_admin }}
|
{{- with .Site.Params.facebook_admin }}
|
||||||
<meta property="fb:admins" content="{{ . }}" />
|
<meta property="fb:admins" content="{{ . }}" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
{{- with partial "utils/description" . }}
|
{{- with partial "utils/description" . }}
|
||||||
<meta name="twitter:description" content="{{ . | plainify | htmlUnescape | chomp }}" />
|
<meta name="twitter:description" content="{{ . | plainify | htmlUnescape | chomp }}" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Site.Social.twitter -}}
|
{{- with .Site.Params.twitter -}}
|
||||||
<meta name="twitter:site" content="@{{ . }}" />
|
<meta name="twitter:site" content="@{{ . }}" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user