diff options
| author | Track3 <pengliabc@live.cn> | 2018-12-24 22:56:07 +0800 |
|---|---|---|
| committer | Track3 <pengliabc@live.cn> | 2018-12-24 22:56:07 +0800 |
| commit | 2b5999616dd0545c0e07bb69e74dffdc4b0448b6 (patch) | |
| tree | 02762d132b1b0810e2313208573babffae37ec17 | |
| parent | feb4c387174eb035abe10354f4dd626a5c399e90 (diff) | |
| download | hermit-2b5999616dd0545c0e07bb69e74dffdc4b0448b6.tar.gz | |
Add translation for toc title
| -rw-r--r-- | i18n/en.toml | 3 | ||||
| -rw-r--r-- | i18n/zh-hans.toml | 3 | ||||
| -rw-r--r-- | layouts/posts/single.html | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/i18n/en.toml b/i18n/en.toml index b3316f3..de033a9 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -17,6 +17,9 @@ other = "Archives" [wordCount] other = "{{ .WordCount }} Words" +[tableOfContents] +other = "Table of Contents" + [newer] other = "Newer" diff --git a/i18n/zh-hans.toml b/i18n/zh-hans.toml index 605cd6b..eddd8ba 100644 --- a/i18n/zh-hans.toml +++ b/i18n/zh-hans.toml @@ -17,6 +17,9 @@ other = "归档" [wordCount] other = "{{ .WordCount }} 字" +[tableOfContents] +other = "目录" + [newer] other = "新" diff --git a/layouts/posts/single.html b/layouts/posts/single.html index a8b5c55..c84c50c 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -34,7 +34,7 @@ </article> {{- if .Params.toc }} <aside id="toc"> - <div class="toc-title">Table of Contents</div> + <div class="toc-title">{{ i18n "tableOfContents" }}</div> {{ .TableOfContents }} </aside> {{- end }} |
