From dcff8a4f858ee892b177cd312c643c42a917f0ec Mon Sep 17 00:00:00 2001 From: Nick Badal Date: Wed, 16 Sep 2020 22:35:58 -0700 Subject: [PATCH] feat: hide blog link if page not created (#4) Allows this theme to be used for sites that do not have a blog. --- layouts/partials/nav.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index dd06f47..def9b6e 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -2,4 +2,6 @@ {{ range .Site.Menus.main }} {{ .Name }} {{ end }} +{{ with .Site.GetPage "/blog" }} Blog +{{ end }}