add i18n support for navigation toggle

Although the toggle only appears when the page is too thin to show both navigation and content, adding i18n support do no harm.
This commit is contained in:
hybcloud 2022-02-08 09:45:21 +08:00
parent 29c2b29f6c
commit 25da98447b
3 changed files with 7 additions and 1 deletions

View file

@ -25,6 +25,9 @@ other = "More"
[Expand-title] [Expand-title]
other = "Expand me..." other = "Expand me..."
[navigation-toggle]
other = "navigation"
[Byte-symbol] [Byte-symbol]
other = "B" other = "B"

View file

@ -25,6 +25,9 @@ other = "更多"
[Expand-title] [Expand-title]
other = "展开" other = "展开"
[navigation-toggle]
other = "导航"
[Byte-symbol] [Byte-symbol]
other = "B" other = "B"

View file

@ -1,6 +1,6 @@
{{- partial "header.html" . }} {{- partial "header.html" . }}
<span id="sidebar-toggle-span"> <span id="sidebar-toggle-span">
<a href="#" id="sidebar-toggle" data-sidebar-toggle=""><i class="fas fa-bars"></i> navigation</a> <a href="#" id="sidebar-toggle" data-sidebar-toggle=""><i class="fas fa-bars"></i>{{T "navigation-toggle"}}</a>
</span> </span>
{{if .Site.Home.Content }} {{if .Site.Home.Content }}