Updates page header to show menu items if there are no rss
This commit is contained in:
parent
2fa06ec88b
commit
a8a2b05461
1 changed files with 23 additions and 16 deletions
|
@ -3,7 +3,6 @@
|
|||
<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 }}
|
||||
|
@ -16,7 +15,15 @@
|
|||
{{ 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>
|
||||
|
|
Loading…
Add table
Reference in a new issue