Localize "By" (#530)
* Localize "By" for some languages (En/De/Es/Fr/It/Pt/No) and wrap string in a dedicated template.
Fixes #528
1 files added
8 files modified
| | |
| | | [readMore] |
| | | other = "weiterlesen" |
| | | |
| | | [by] |
| | | other = "Von" |
| | | |
| | | [whatsInThis] |
| | | other = "Was ist in dieser {{ .Type }}" |
| | | |
| | |
| | | [readMore] |
| | | other = "read more" |
| | | |
| | | [by] |
| | | other = "By" |
| | | |
| | | [whatsInThis] |
| | | other = "What's in this {{ .Type }}" |
| | | |
| | |
| | | [readMore] |
| | | other = "Leer más" |
| | | |
| | | [by] |
| | | other = "Por" |
| | | |
| | | [whatsInThis] |
| | | other = "Qué hay en este {{ .Type }}" |
| | | |
| | |
| | | [readMore] |
| | | other = "lire plus" |
| | | |
| | | [by] |
| | | other = "Par" |
| | | |
| | | [whatsInThis] |
| | | other = "Ce qui est dans {{ .Type }}" |
| | | |
| | |
| | | [readMore] |
| | | other = "leggi di più" |
| | | |
| | | [by] |
| | | other = "Da" |
| | | |
| | | [whatsInThis] |
| | | other = "Cosa c'è in {{ .Type }}" |
| | | |
| | |
| | | [readMore] |
| | | other = "Les mer" |
| | | |
| | | [by] |
| | | other = "Av" |
| | | |
| | | [whatsInThis] |
| | | other = "Innhold av {{ .Type }}" |
| | | |
| | |
| | | [readMore] |
| | | other = "Leia mais" |
| | | |
| | | [by] |
| | | other = "por" |
| | | |
| | | [whatsInThis] |
| | | other = "O que há neste {{ .Type }}" |
| | | |
| New file |
| | |
| | | {{- if eq .Lang "de" "en" "es" "fr" "it" "no" "pt" -}} |
| | | {{- i18n "by" -}} |
| | | {{ end -}} |
| | |
| | | </h1> |
| | | {{ with .Params.author | default .Site.Params.author }} |
| | | <p class="tracked"> |
| | | 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 */}} |