Cleanup and Fixes

This commit is contained in:
Alexandre Vicenzi 2020-06-15 19:52:15 +02:00
parent ac7ec7386b
commit 01322efeb2
11 changed files with 15 additions and 53 deletions

View file

@ -1,13 +1,7 @@
{{ define "main" -}}
<ul class="posts">
<h1>Tag: {{ .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>