Change menu and list page parameters to displayInMenu and displayInList

This commit is contained in:
Joe Hutchinson
2018-12-18 13:16:15 -05:00
parent 5cb5c456ea
commit a379bc14c5
4 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
title: "{{ replace .TranslationBaseName "-" " " | title }}" title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }} date: {{ .Date }}
description: "" description: ""
menu: false displayInMenu: false
list: false displayInList: true
draft: true draft: true
--- ---

View File

@@ -4,7 +4,7 @@ date: {{ .Date }}
description: "" description: ""
categories: [] categories: []
featuredImage: "" featuredImage: ""
menu: false displayInMenu: false
list: true displayInList: true
draft: true draft: true
--- ---

View File

@@ -8,7 +8,7 @@
<p class="list-header-subtext">{{ .Description }}</p> <p class="list-header-subtext">{{ .Description }}</p>
<h1 class="list-header-title">{{ .Title }}</h1> <h1 class="list-header-title">{{ .Title }}</h1>
</header> </header>
{{ $paginator := .Paginate (where .Pages "Params.list" "!=" false) }} {{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) }}
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
{{ .Render "li" }} {{ .Render "li" }}
{{ end }} {{ end }}

View File

@@ -12,7 +12,7 @@
<span></span> <span></span>
<ul class="hamburger-menu-overlay"> <ul class="hamburger-menu-overlay">
<li><a href="/" class="hamburger-menu-overlay-link">Home</a></li> <li><a href="/" class="hamburger-menu-overlay-link">Home</a></li>
{{ range where .Site.Pages "Params.menu" true }} {{ range where .Site.Pages "Params.displayinmenu" true }}
<li><a href="{{ .Permalink }}" class="hamburger-menu-overlay-link">{{ .Title }}</a></li> <li><a href="{{ .Permalink }}" class="hamburger-menu-overlay-link">{{ .Title }}</a></li>
{{ end }} {{ end }}
{{ range $key, $value := .Site.Taxonomies.categories }} {{ range $key, $value := .Site.Taxonomies.categories }}