60 lines
2.3 KiB
HTML
60 lines
2.3 KiB
HTML
{{ $currentPage := . }}
|
|
<ul>
|
|
<div class="sidebar-header">
|
|
{{ if eq .Lang "en"}}
|
|
<a class="sidebar-brand" href="/en/">
|
|
<img src="/page-resources/wmilogo_red.png"></img>
|
|
{{ .Site.Title }}
|
|
</a>
|
|
{{else}}
|
|
<a class="sidebar-brand" href="/">
|
|
<img src="/page-resources/wmilogo_red.png"></img>
|
|
{{ .Site.Title }}
|
|
</a>
|
|
{{end}}
|
|
|
|
<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>
|
|
</div></br>
|
|
|
|
|
|
|
|
{{ 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>
|
|
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
|
<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>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|