Implemented i18n support for theme strings like Home and Search.
This commit is contained in:
parent
5515bae2cc
commit
cd457d7bcd
1 changed files with 40 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<nav class="main-menu" role="navigation">
|
||||
<h2 class="visually-hidden">Main menu</h2>
|
||||
<ul class="navbar clearfix">
|
||||
<li><a class="{{ if .IsHome }}active{{ end }}" href="/">Home</a></li>
|
||||
<li><a class="{{ if .IsHome }}active{{ end }}" href="/">{{ i18n "menu_home" }}</a></li>
|
||||
{{ range after 1 (where .Site.Pages "Section" "") -}}
|
||||
<li><a class="{{ if eq $currentID .UniqueID }}active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue