From 2b5999616dd0545c0e07bb69e74dffdc4b0448b6 Mon Sep 17 00:00:00 2001 From: Track3 Date: Mon, 24 Dec 2018 22:56:07 +0800 Subject: [PATCH] Add translation for toc title --- i18n/en.toml | 3 +++ i18n/zh-hans.toml | 3 +++ layouts/posts/single.html | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) 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 @@ {{- if .Params.toc }} {{- end }}