From 985c315e45fdf79404455c4b8ee195c570b2e479 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Mon, 21 Jun 2021 18:30:32 +0200 Subject: [PATCH] feat(i18n): add i18n entry for "Back" and "Table of Contents" --- i18n/en.yaml | 12 ++++++++++++ layouts/_default/single.html | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index 99d34ce..21b1310 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -17,8 +17,15 @@ list: other: Subsections article: + back: + other: Back + + tableOfContents: + other: Table of contents + relatedContents: other: Related contents + lastUpdatedOn: other: Last updated on @@ -32,8 +39,10 @@ widget: archives: title: other: Archives + more: other: More + tagCloud: title: other: Tags @@ -41,13 +50,16 @@ widget: search: title: other: Search + placeholder: other: Type something... + resultTitle: other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)" footer: builtWith: other: Built with {{ .Generator }} + designedBy: other: Theme {{ .Theme }} designed by {{ .DesignedBy }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 781ebe1..8b6c1a9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -31,7 +31,7 @@
{{ (resources.Get "icons/back.svg").Content | safeHTML }} - Back + {{ T "article.back" }}
{{ else }} @@ -46,7 +46,7 @@
{{ partial "helper/icon" "hash" }}
-

Table of contents

+

{{ T "article.tableOfContents" }}

{{ .TableOfContents }}