diff options
author | Josh Johnson <jnjosh@jnjosh.com> | 2018-11-15 18:54:42 +0300 |
---|---|---|
committer | Josh Johnson <jnjosh@jnjosh.com> | 2018-11-15 18:54:42 +0300 |
commit | 85ddc72eb720619efbaadf1ea875e6d4abe5481d (patch) | |
tree | ee4f6ba6bb616bfc0292727a67e5659cf45df8ff | |
parent | 0c39cde24835c3e0100a1c4697d93e99d4ad1634 (diff) |
Adds check for required variable before rendering menu - Fix for #9
-rw-r--r-- | layouts/partials/page_header.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/page_header.html b/layouts/partials/page_header.html index a8038a5..fc995a6 100644 --- a/layouts/partials/page_header.html +++ b/layouts/partials/page_header.html @@ -2,6 +2,8 @@ <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 }} @@ -14,6 +16,8 @@ {{ end }} {{ with .Site.Author.aboutpage }}<li><a href="{{ . }}">About</a></li>{{ end }} </ul> + + {{ end }} </div> </nav> </header> |