Skip to content
Snippets Groups Projects
Commit b783a244 authored by Martyn Welch's avatar Martyn Welch Committed by Martyn Welch
Browse files

Fixup "can't evaluate field Count in type string"


After moving to the latest version of Hugo, we are seeing lots of warnings
as follows:

WARN 2021/03/08 10:11:09 Failed to get translated string for language "en" and ID "postedOnDate": template: :1:13: executing "" at <.Count>: can't evaluate field Count in type string

The fix is trivial, so implement to save these messages from obscuring
actual issues.

Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
parent 8be11b00
No related branches found
No related tags found
1 merge request!219Review of concept documents
......@@ -2,7 +2,7 @@
- id: dateFormat
translation: "January 2, 2006"
- id: postedOnDate
translation: "Posted on {{ .Count }}"
translation: "Posted on {{ . }}"
- id: translationsLabel
translation: "Other languages: "
- id: translationsSeparator
......
......@@ -2,7 +2,7 @@
- id: dateFormat
translation: "2006年1月2日"
- id: postedOnDate
translation: "{{ .Count }}に投稿"
translation: "{{ . }}に投稿"
- id: translationsLabel
translation: "翻訳:"
- id: translationsSeparator
......
......@@ -2,7 +2,7 @@
- id: dateFormat
translation: "Январь 2, 2006"
- id: postedOnDate
translation: "Опубликовано {{ .Count }}"
translation: "Опубликовано {{ . }}"
- id: translationsLabel
translation: "Другие языки: "
- id: translationsSeparator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment