mirror of https://github.com/jpanther/congo.git
🌐 Add extra variables to footer for better i18n
parent
f9263f5235
commit
0f15206e78
|
@ -16,7 +16,7 @@ error:
|
|||
404_description: "It seems that the page you've requested does not exist."
|
||||
|
||||
footer:
|
||||
powered_by: "Powered by {{ .Hugo }}"
|
||||
powered_by: "Powered by {{ .Hugo }} & {{ .Congo }}"
|
||||
|
||||
list:
|
||||
externalurl_title: "Link to external site"
|
||||
|
|
|
@ -15,7 +15,7 @@ error:
|
|||
404_description: "您请求的页面似乎不存在。"
|
||||
|
||||
footer:
|
||||
powered_by: "由 {{ .Hugo }} 强力驱动"
|
||||
powered_by: "由 {{ .Hugo }} & {{ .Congo }} 强力驱动"
|
||||
|
||||
list:
|
||||
externalurl_title: "链接到外部网站"
|
||||
|
|
|
@ -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>
|
||||
&
|
||||
<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. */}}
|
||||
|
|
Loading…
Reference in New Issue