aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18n/en.toml3
-rw-r--r--i18n/zh-hans.toml3
-rw-r--r--layouts/posts/single.html2
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 }}