Add translation for toc title

This commit is contained in:
Track3 2018-12-24 22:56:07 +08:00
parent feb4c38717
commit 2b5999616d
3 changed files with 7 additions and 1 deletions

View file

@ -17,6 +17,9 @@ other = "Archives"
[wordCount]
other = "{{ .WordCount }} Words"
[tableOfContents]
other = "Table of Contents"
[newer]
other = "Newer"

View file

@ -17,6 +17,9 @@ other = "归档"
[wordCount]
other = "{{ .WordCount }} 字"
[tableOfContents]
other = "目录"
[newer]
other = "新"

View file

@ -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 }}