mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 00:52:43 +00:00
Add “no" localization
Only print a "by" for some languages Add "by" template for easy overwrite
This commit is contained in:
parent
84011f418d
commit
ea43359ed7
@ -10,6 +10,9 @@ other = "Nyeste {{.Title }}"
|
||||
[readMore]
|
||||
other = "Les mer"
|
||||
|
||||
[by]
|
||||
other = "Av"
|
||||
|
||||
[whatsInThis]
|
||||
other = "Innhold av {{ .Type }}"
|
||||
|
||||
|
3
layouts/_default/by.html
Normal file
3
layouts/_default/by.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{- if eq .Lang "de" "en" "es" "fr" "it" "no" "pt" -}}
|
||||
{{- i18n "by" -}}
|
||||
{{ end -}}
|
@ -20,13 +20,13 @@
|
||||
</h1>
|
||||
{{ with .Params.author | default .Site.Params.author }}
|
||||
<p class="tracked">
|
||||
{{ i18n "by" }} <strong>
|
||||
{{ if reflect.IsSlice . }}
|
||||
{{ delimit . ", " | markdownify }}
|
||||
{{else}}
|
||||
{{ . | markdownify }}
|
||||
{{ end }}
|
||||
</strong>
|
||||
{{ $.Render "by" }} <strong>
|
||||
{{- if reflect.IsSlice . -}}
|
||||
{{ delimit . ", " | markdownify }}
|
||||
{{- else -}}
|
||||
{{ . | markdownify }}
|
||||
{{- end -}}
|
||||
</strong>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user