Cleanup and Fixes
This commit is contained in:
parent
ac7ec7386b
commit
01322efeb2
11 changed files with 15 additions and 53 deletions
|
@ -1,13 +1,7 @@
|
|||
{{ define "main" -}}
|
||||
<ul class="posts">
|
||||
<h1>Category: {{ .Title }}</h1>
|
||||
{{ $regularPages := .Data.Pages -}}
|
||||
{{ $pagesNotHidden := where $regularPages ".Params.hidden" "==" false }}
|
||||
{{ $pagesHiddenUnset := where $regularPages ".Params.hidden" "==" nil }}
|
||||
|
||||
{{ $pages := $pagesNotHidden | union $pagesHiddenUnset }}
|
||||
|
||||
{{ range $pages -}}
|
||||
{{ range .Data.Pages -}}
|
||||
<li>
|
||||
<span>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue