Welcome to mirror list, hosted at ThFree Co, Russian Federation.

menu.html « partials « layouts - github.com/rhnvrm/bodhi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 39985ebc8f781dce72831d64e05d39c3640fae16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<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 }}
	{{- range $index, $key := .Site.Params.Social -}}
	<a href="{{ $key.url }}" title="{{ $key.name }}">
		<i data-feather="{{ $key.icon }}"></i>
	</a>
	{{- 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>