diff options
Diffstat (limited to 'themes/default/layouts/_default/index.json')
-rw-r--r-- | themes/default/layouts/_default/index.json | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/themes/default/layouts/_default/index.json b/themes/default/layouts/_default/index.json index 7cfd37d..6cbc1ef 100644 --- a/themes/default/layouts/_default/index.json +++ b/themes/default/layouts/_default/index.json @@ -7,9 +7,7 @@ "next_url": "{{ .URL | absURL }}", {{- end }} "items": [ - {{- $notExpired := where .Paginator.Pages "Params.expirydate" "eq" nil -}} - {{- $notUnlisted := where .Paginator.Pages "Params.unlisted" "eq" nil -}} - {{- $filteredPages := $notExpired | intersect $notUnlisted -}} + {{- $filteredPages := partial "function-filters-content.html" .Paginator.Pages -}} {{- range $index, $data := $filteredPages -}} {{- if and $index (gt $index 0) -}},{{- end }} { |