This commit is contained in:
Madison Scott-Clary
2019-12-23 01:05:36 -08:00
parent 06cee736e5
commit 4d42533e35

View File

@ -1,5 +1,5 @@
{{ define "main" }}
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
{{ $paginator := .Paginate (where .Pages.ByWeight ".Params.date" "!=" nil) 1 }}
{{ $content := .Content }}
{{ range $paginator.Pages.ByWeight }}
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>