Allow hiding items from nav
This commit is contained in:
parent
c66e798f27
commit
5685081b77
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
<div class="row">
|
||||
{{ range .Pages.ByTitle }}
|
||||
{{ range where .Pages.ByTitle "Params.show_in_nav" "!=" "false" }}
|
||||
{{ partial "box.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
{{ if .Pages }}
|
||||
<ul>
|
||||
{{ range first .Site.Params.nav_items .Pages.ByDate }}
|
||||
{{ range first .Site.Params.nav_items (where .Pages.ByDate "Params.show_in_nav" "!=" "false") }}
|
||||
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
{{ if ge (len .Pages) .Site.Params.nav_items }}
|
||||
|
|
Loading…
Reference in a new issue