Add “no" localization
Only print a "by" for some languages
Add "by" template for easy overwrite
1 files added
2 files modified
| | |
| | | [readMore] |
| | | other = "Les mer" |
| | | |
| | | [by] |
| | | other = "Av" |
| | | |
| | | [whatsInThis] |
| | | other = "Innhold av {{ .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"> |
| | | {{ 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 */}} |