mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-22 23:37:53 +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]
|
||||
other = "Expand me..."
|
||||
|
||||
[navigation-toggle]
|
||||
other = "navigation"
|
||||
|
||||
[Byte-symbol]
|
||||
other = "B"
|
||||
|
||||
|
|
|
@ -25,6 +25,9 @@ other = "更多"
|
|||
[Expand-title]
|
||||
other = "展开"
|
||||
|
||||
[navigation-toggle]
|
||||
other = "导航"
|
||||
|
||||
[Byte-symbol]
|
||||
other = "B"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{- partial "header.html" . }}
|
||||
<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>
|
||||
|
||||
{{if .Site.Home.Content }}
|
||||
|
|
Loading…
Reference in a new issue