diff --git a/i18n/en.yaml b/i18n/en.yaml new file mode 100644 index 0000000..18a80c0 --- /dev/null +++ b/i18n/en.yaml @@ -0,0 +1,6 @@ +# Post +- id: meta_lastmod + translation: Updated + +- id: meta_categories + translation: Categories diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 56bb4dc..0841022 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -2,10 +2,10 @@ {{ end }} {{- if ne .Date .Lastmod }} - + {{- end }} {{- if .Params.categories }} - Categories: {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}{{ . }}{{ end }} + {{ T "meta_categories" }}: {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}{{ . }}{{ end }} {{- end }} \ No newline at end of file