From a6c2a347f5cafc95b0f09e2926793864cd49a2c7 Mon Sep 17 00:00:00 2001 From: v1ne Date: Tue, 19 Nov 2019 22:05:23 +0100 Subject: [PATCH] Article TOC: Make TOC title translateable --- i18n/en.toml | 2 ++ layouts/partials/article.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 i18n/en.toml diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..b0bd147 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,2 @@ +[Contents] +other = "Contents" diff --git a/layouts/partials/article.html b/layouts/partials/article.html index 20989c5..57ca6a0 100644 --- a/layouts/partials/article.html +++ b/layouts/partials/article.html @@ -35,7 +35,7 @@ {{ if not .Params.notoc }} {{ if .TableOfContents }}
-

Contents

+

{{ T "Contents" }}

{{ .TableOfContents }}
{{ end }}