hugo-labs/layouts/partials/sidebar.html

58 lines
2.2 KiB
HTML
Raw Normal View History

2018-06-07 14:28:01 +02:00
{{ $currentPage := . }}
<ul>
2018-10-11 13:40:58 +02:00
<div class="sidebar-header">
2018-10-13 17:15:51 +02:00
{{ if eq .Lang "en"}}
<a class="sidebar-brand" href="/en/">
2018-10-11 13:40:58 +02:00
{{ .Site.Title }}
2018-10-13 17:15:51 +02:00
</a>
{{else}}
<a class="sidebar-brand" href="/">
{{ .Site.Title }}
</a>
{{end}}
2018-10-11 13:40:58 +02:00
<form class="sidebar-header sidebar-brand" action="https://szukaj.wmi.amu.edu.pl/search/" method="GET">
<div class="input-group">
<input type="text" class="form-control" name="q" placeholder="Search">
<span class="input-group-btn">
<button type="submit" class="btn btn-default">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</form>
</div>
2018-10-13 17:15:51 +02:00
</div></br>
2018-10-11 13:40:58 +02:00
2018-10-05 17:18:03 +02:00
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<li class="item {{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
<ul>
{{ range .Children }}
<li class="sub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
2018-06-07 14:28:01 +02:00
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
2018-10-05 17:18:03 +02:00
<ul>
{{ range .Children }}
<li class="subsub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
<ul>
{{ range .Children }}
<li class="subsubsub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
2018-06-07 14:28:01 +02:00
{{ end }}
2018-10-05 17:18:03 +02:00
</li>
{{ end }}
</ul>
2018-06-07 14:28:01 +02:00
{{ end }}
2018-10-05 17:18:03 +02:00
</li>
{{ end }}
</ul>
2018-06-07 14:28:01 +02:00
{{ end }}
2018-10-05 17:18:03 +02:00
</li>
2018-06-07 14:28:01 +02:00
{{ end }}
2018-10-05 17:18:03 +02:00
{{ end }}
2018-06-07 14:28:01 +02:00
</ul>