mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 17:41:02 +08: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
@ -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…
x
Reference in New Issue
Block a user