<header> <nav> <h1><a href="{{.Site.BaseURL}}">@{{ .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 }} <li><a href="{{.Site.BaseURL}}{{ with .Site.Params.Author.aboutpage }}{{ . }}{{ end }}">Über</a></li> </ul> {{ else }} <ul> {{ range .Site.Menus.main }} <li> <a href="{{.URL}}">{{ .Name }}</a> </li> {{ end }} <li><a href="{{.Site.BaseURL}}{{ with .Site.Params.Author.aboutpage }}{{ . }}{{ end }}">Über</a></li> </ul> {{ end }} </div> </nav> </header>