mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
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:
parent
29c2b29f6c
commit
25da98447b
3 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,9 @@ other = "更多"
|
||||||
[Expand-title]
|
[Expand-title]
|
||||||
other = "展开"
|
other = "展开"
|
||||||
|
|
||||||
|
[navigation-toggle]
|
||||||
|
other = "导航"
|
||||||
|
|
||||||
[Byte-symbol]
|
[Byte-symbol]
|
||||||
other = "B"
|
other = "B"
|
||||||
|
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue