mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-05-06 07:23:31 +08:00
feat(i18n): add i18n entry for "Back" and "Table of Contents"
This commit is contained in:
parent
9b77ad2ee7
commit
985c315e45
12
i18n/en.yaml
12
i18n/en.yaml
@ -17,8 +17,15 @@ list:
|
|||||||
other: Subsections
|
other: Subsections
|
||||||
|
|
||||||
article:
|
article:
|
||||||
|
back:
|
||||||
|
other: Back
|
||||||
|
|
||||||
|
tableOfContents:
|
||||||
|
other: Table of contents
|
||||||
|
|
||||||
relatedContents:
|
relatedContents:
|
||||||
other: Related contents
|
other: Related contents
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
other: Last updated on
|
other: Last updated on
|
||||||
|
|
||||||
@ -32,8 +39,10 @@ widget:
|
|||||||
archives:
|
archives:
|
||||||
title:
|
title:
|
||||||
other: Archives
|
other: Archives
|
||||||
|
|
||||||
more:
|
more:
|
||||||
other: More
|
other: More
|
||||||
|
|
||||||
tagCloud:
|
tagCloud:
|
||||||
title:
|
title:
|
||||||
other: Tags
|
other: Tags
|
||||||
@ -41,13 +50,16 @@ widget:
|
|||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: Search
|
other: Search
|
||||||
|
|
||||||
placeholder:
|
placeholder:
|
||||||
other: Type something...
|
other: Type something...
|
||||||
|
|
||||||
resultTitle:
|
resultTitle:
|
||||||
other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
|
other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
|
||||||
|
|
||||||
footer:
|
footer:
|
||||||
builtWith:
|
builtWith:
|
||||||
other: Built with {{ .Generator }}
|
other: Built with {{ .Generator }}
|
||||||
|
|
||||||
designedBy:
|
designedBy:
|
||||||
other: Theme {{ .Theme }} designed by {{ .DesignedBy }}
|
other: Theme {{ .Theme }} designed by {{ .DesignedBy }}
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<div id="article-toolbar">
|
<div id="article-toolbar">
|
||||||
<a href="{{ .Site.BaseURL }}" class="back-home">
|
<a href="{{ .Site.BaseURL }}" class="back-home">
|
||||||
{{ (resources.Get "icons/back.svg").Content | safeHTML }}
|
{{ (resources.Get "icons/back.svg").Content | safeHTML }}
|
||||||
<span>Back</span>
|
<span>{{ T "article.back" }}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
@ -46,7 +46,7 @@
|
|||||||
<div class="widget-icon">
|
<div class="widget-icon">
|
||||||
{{ partial "helper/icon" "hash" }}
|
{{ partial "helper/icon" "hash" }}
|
||||||
</div>
|
</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">
|
<div class="widget--toc">
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
|
Loading…
Reference in New Issue
Block a user