Return the filter of unreleased content.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user