diff options
author | v1ne <v1ne2go@gmail.com> | 2019-11-20 00:05:23 +0300 |
---|---|---|
committer | Carson Ip <carsonip@users.noreply.github.com> | 2019-11-29 18:04:51 +0300 |
commit | a6c2a347f5cafc95b0f09e2926793864cd49a2c7 (patch) | |
tree | 175de1ee06088ded2eb96b41cb167e20235f653f | |
parent | 27d1950183431c54ac6e616400571f753b00128f (diff) |
Article TOC: Make TOC title translateable
-rw-r--r-- | i18n/en.toml | 2 | ||||
-rw-r--r-- | layouts/partials/article.html | 2 |
2 files changed, 3 insertions, 1 deletions
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 }} <div class="article-toc" {{ if .Site.Params.SmartToc }}style="display:none;"{{ end }}> - <h3>Contents</h3> + <h3>{{ T "Contents" }}</h3> {{ .TableOfContents }} </div> {{ end }} |