<header>
  <nav>
    <h1><a href="/">@{{ .Site.Params.Author.handle }}</a> {{ .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="{{.URL}}">{{ .Name }}</a>
					{{ if in ($.Scratch.Get "sections") .Name }}
						<a href="{{.URL}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
					{{ end }}
				</li>
				{{ end }}
				{{ with .Site.Params.Author.aboutpage }}<li><a href="{{ . }}">Über</a></li>{{ end }}
			</ul>
		{{ else }}
			<ul>
				{{ range .Site.Menus.main }}
				<li>
					<a href="{{.URL}}">{{ .Name }}</a>
				</li>
				{{ end }}
				{{ with .Site.Params.Author.aboutpage }}<li><a href="{{ . }}">Über</a></li>{{ end }}
			</ul>
      	{{ end }}
    </div>
  </nav>
</header>
