feat: hide blog link if page not created.
allows this theme to be used for sites that don't have a blog.pull/4/head
parent
3d510363c7
commit
8fbbfa500d
|
@ -2,4 +2,6 @@
|
|||
{{ range .Site.Menus.main }}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
{{ with .Site.GetPage "/blog" }}
|
||||
<a href="{{ "/blog" | relURL }}">Blog</a>
|
||||
{{ end }}
|
||||
|
|
Reference in New Issue