From c4945ec9a5cc182e584d4776c122734992150d81 Mon Sep 17 00:00:00 2001 From: vimux Date: Sat, 10 Mar 2018 11:04:24 +0300 Subject: [PATCH] Add i18n --- i18n/en.yaml | 6 ++++++ layouts/partials/post_meta.html | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 i18n/en.yaml 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