Return the filter of unreleased content.

This commit is contained in:
2026-01-09 19:59:08 -07:00
parent 5075860959
commit 33145cdd76

View File

@@ -8,6 +8,15 @@
{{- /* $sortedPages := .Data.Pages.ByParam "release" */ -}}
{{- /* $paginator := .Paginate $sortedPages */ -}}
{{- /* $customPages := slice */ -}}
{{- /* range .Data.Pages */ -}}
{{- /* $orderDate := .Params.release | default .Date */ -}}
{{- /* print $orderDate */ -}}
{{- /* $customPages = $customPages | append (dict "Page" . "orderDate" $orderDate) */ -}}
{{- /* end */ -}}
{{- /* $sortedPages := sort $customPages "Params.orderDate" "desc" */ -}}
{{- /* $paginator := .Paginate $sortedPages */ -}}
<main class="posts">
<h1>{{ .Title }}</h1>
{{ if .Params.subtitle }}
@@ -48,7 +57,7 @@
{{ continue }}
{{ end }}
{{ if false }} and (.Params.release) (ge (time.AsTime .Params.release) (time now))
{{ if and (.Params.release) (ge (time.AsTime .Params.release) (time now)) }}
{{ continue }}
{{ end }}