🌐 Add extra variables to footer for better i18n

This commit is contained in:
James Panther
2021-10-20 09:31:28 +11:00
parent f9263f5235
commit 0f15206e78
3 changed files with 5 additions and 8 deletions
+3 -6
View File
@@ -30,13 +30,10 @@
{{ if .Site.Params.attribution | default true }}
<p class="text-xs text-neutral-300 dark:text-neutral-600">
{{ $hugo := printf `<a class="hover:underline hover:underline-primary-300 hover:text-primary-400"
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a>
&amp;
<a class="hover:underline hover:underline-primary-300 hover:text-primary-400" href="https://git.io/hugo-congo"
target="_blank" rel="noopener noreferrer">Congo</a>`
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a>`
}}
{{ i18n "footer.powered_by" (dict "Hugo" $hugo) | safeHTML }}
{{ $congo := printf `<a class="hover:underline hover:underline-primary-300 hover:text-primary-400" href="https://git.io/hugo-congo" target="_blank" rel="noopener noreferrer">Congo</a>` }}
{{ i18n "footer.powered_by" (dict "Hugo" $hugo "Congo" $congo) | safeHTML }}
</p>
{{ end }}
{{/* Extend footer - eg. for extra scripts, etc. */}}