diff --git a/layouts/partials/page_header.html b/layouts/partials/page_header.html index 7f9a3bb..c381950 100644 --- a/layouts/partials/page_header.html +++ b/layouts/partials/page_header.html @@ -2,22 +2,29 @@ @{{ .Site.Author.handle }}’s {{ .Site.Title }}. - {{ if isset .Site.Params "rsssections" }} - - {{ $.Scratch.Add "sections" .Site.Params.rsssections }} - - {{ range .Site.Menus.main }} - - {{ .Name }} - {{ if in ($.Scratch.Get "sections") .Name }} - - {{ end }} - - {{ end }} - {{ with .Site.Author.aboutpage }}About{{ end }} - - - {{ end }} + {{ if isset .Site.Params "rsssections" }} + {{ $.Scratch.Add "sections" .Site.Params.rsssections }} + + {{ range .Site.Menus.main }} + + {{ .Name }} + {{ if in ($.Scratch.Get "sections") .Name }} + + {{ end }} + + {{ end }} + {{ with .Site.Author.aboutpage }}About{{ end }} + + {{ else }} + + {{ range .Site.Menus.main }} + + {{ .Name }} + + {{ end }} + {{ with .Site.Author.aboutpage }}About{{ end }} + + {{ end }}