feat: hide blog link if page not created (#4)
Allows this theme to be used for sites that do not have a blog.
This commit is contained in:
parent
3d510363c7
commit
dcff8a4f85
@ -2,4 +2,6 @@
|
|||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with .Site.GetPage "/blog" }}
|
||||||
<a href="{{ "/blog" | relURL }}">Blog</a>
|
<a href="{{ "/blog" | relURL }}">Blog</a>
|
||||||
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user