25 lines
868 B
HTML
25 lines
868 B
HTML
<div class="nav">
|
|
<h3 class="nav-title">Menu</h3>
|
|
<a href="#" class="nav-close">
|
|
<span class="hidden">Close</span>
|
|
</a>
|
|
<ul>
|
|
{{ $currentNode := . }}
|
|
{{with .Site.Menus.main}}
|
|
{{ range sort . "Weight" "desc"}}
|
|
{{.Pre}}
|
|
<li class="nav-opened{{if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .)}} nav-current{{end}}" role="presentation">
|
|
<a href="{{.URL}}">{{.Name}}</a>
|
|
</li>
|
|
{{end}}
|
|
{{end}}
|
|
</ul>
|
|
|
|
{{ if .Site.Params.RSSLink}}
|
|
<a class="subscribe-button icon-feed" href="{{.Site.Params.RSSLink }}">Subscribe</a> </div>
|
|
{{else}}
|
|
<a class="subscribe-button icon-feed" href="{{if .IsNode}}{{.RSSLink}}{{else}}{{"index.xml" | relURL}}{{end}}">Subscribe</a>
|
|
{{end}}
|
|
</div>
|
|
<span class="nav-cover"></span>
|