blob: a1d16ed4b63fd28f3cd11c35ec37829d1175e761 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<div id="menu">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{if eq $currentPage.Params.url .URL }}<b>{{end}}
<a href="{{ .URL }}">{{ .Name }}</a>
{{if eq $currentPage.Params.url .URL }}</b>{{end}}
{{ end }}
<span class="right">
{{ range .Site.Menus.main_right }}
{{if eq $currentPage.Params.url .URL }}<b>{{end}}
<a href="{{ .URL }}">{{ .Name }}</a>
{{if eq $currentPage.Params.url .URL }}</b>{{end}}
{{ end }}
{{if eq $currentPage.Params.url "/search/" }}<b>{{end}}
<a href="/search">search<svg aria-hidden="true" class="i-search" viewBox="0 0 32 32" width="10" height="10" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"><circle cx="14" cy="14" r="12"></circle><path d="M23 23l7 7"></path></svg></a>
{{if eq $currentPage.Params.url "/search/" }}</b>{{end}}
</span>
</div>
|