feat(i18n): add i18n entry for "Back" and "Table of Contents"

This commit is contained in:
Jimmy 2021-06-21 18:30:32 +02:00
parent 9b77ad2ee7
commit 985c315e45
2 changed files with 14 additions and 2 deletions

View File

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

View File

@ -31,7 +31,7 @@
<div id="article-toolbar">
<a href="{{ .Site.BaseURL }}" class="back-home">
{{ (resources.Get "icons/back.svg").Content | safeHTML }}
<span>Back</span>
<span>{{ T "article.back" }}</span>
</a>
</div>
{{ else }}
@ -46,7 +46,7 @@
<div class="widget-icon">
{{ partial "helper/icon" "hash" }}
</div>
<h2 class="widget-title section-title">Table of contents</h2>
<h2 class="widget-title section-title">{{ T "article.tableOfContents" }}</h2>
<div class="widget--toc">
{{ .TableOfContents }}