diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index dc71684..5fc13ee 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -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 */ -}}
+
{{ .Title }}
{{ 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 }}