Zebra/themes/casper/layouts/partials/navigation.html

25 lines
919 B
HTML
Raw Permalink Normal View History

2020-08-05 17:22:00 +02:00
<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}}
2022-12-08 15:42:09 +01:00
<a class="subscribe-button icon-feed" href="{{if .IsNode}}{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}{{else}}{{"index.xml" | relURL}}{{end}}">Subscribe</a>
2020-08-05 17:22:00 +02:00
{{end}}
</div>
<span class="nav-cover"></span>