30 lines
853 B
HTML
30 lines
853 B
HTML
<header>
|
||
<nav>
|
||
<h1><a href="/">@{{ .Site.Author.handle }}</a>’s {{ .Site.Title }}.</h1>
|
||
<div class="menu">
|
||
{{ if isset .Site.Params "rsssections" }}
|
||
{{ $.Scratch.Add "sections" .Site.Params.rsssections }}
|
||
<ul>
|
||
{{ range .Site.Menus.main }}
|
||
<li>
|
||
<a href="{{.Permalink}}">{{ .Name }}</a>
|
||
{{ if in ($.Scratch.Get "sections") .Name }}
|
||
<a href="{{.Permalink}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
|
||
{{ end }}
|
||
</li>
|
||
{{ end }}
|
||
{{ with .Site.Author.aboutpage }}<li><a href="{{ . }}">About</a></li>{{ end }}
|
||
</ul>
|
||
{{ else }}
|
||
<ul>
|
||
{{ range .Site.Menus.main }}
|
||
<li>
|
||
<a href="{{.URL}}">{{ .Name }}</a>
|
||
</li>
|
||
{{ end }}
|
||
{{ with .Site.Author.aboutpage }}<li><a href="{{ . }}">About</a></li>{{ end }}
|
||
</ul>
|
||
{{ end }}
|
||
</div>
|
||
</nav>
|
||
</header>
|