Return the filter of unreleased content.
This commit is contained in:
@@ -8,6 +8,15 @@
|
|||||||
{{- /* $sortedPages := .Data.Pages.ByParam "release" */ -}}
|
{{- /* $sortedPages := .Data.Pages.ByParam "release" */ -}}
|
||||||
{{- /* $paginator := .Paginate $sortedPages */ -}}
|
{{- /* $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">
|
<main class="posts">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ if .Params.subtitle }}
|
{{ if .Params.subtitle }}
|
||||||
@@ -48,7 +57,7 @@
|
|||||||
{{ continue }}
|
{{ continue }}
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ continue }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user