diff --git a/themes/vanilla/i18n/en.toml b/themes/vanilla/i18n/en.toml new file mode 100644 index 0000000..bfe03ad --- /dev/null +++ b/themes/vanilla/i18n/en.toml @@ -0,0 +1,32 @@ +[Home] +other = "Home" + +[About] +other = "About" + +[Resume] +other = "Resume" + +[Tags] +other = "Tags" + +[AllPosts] +other = "All Posts" + +[PostedOn] +other = "Posted on {{ .Date.Format \"January 2, 2006\" }}." + +[TableOfContents] +other = "Table of Contents" + +[ReadingTime] +other = "{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read." + +[Note] +other = "note" + +[Tagged] +other = "Tagged \"{{ .Title }}\"" + +[AllTags] +other = "Below is a list of all the tags ever used on this site." diff --git a/themes/vanilla/layouts/blog/single.html b/themes/vanilla/layouts/blog/single.html index da51380..862e0c2 100644 --- a/themes/vanilla/layouts/blog/single.html +++ b/themes/vanilla/layouts/blog/single.html @@ -6,14 +6,14 @@ {{ . }} {{ end }}
-Posted on {{ .Date.Format "January 2, 2006" }}.
+{{ i18n "PostedOn" . }}
{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.
+{{ i18n "ReadingTime" . }}
{{ .Summary }} . . .