Fix for hugo update

This commit is contained in:
Madison Scott-Clary
2019-10-26 20:04:57 -07:00
parent 337d2345fe
commit 5e5a3e1062
8 changed files with 11 additions and 7 deletions

View File

@ -1,14 +1,11 @@
{{ define "main" }}
<main id="main">
{{ .Content }}
{{ $paginator := .Paginate (and (where .Pages ".Params.date" "!=" nil) (where .Pages ".Type" "==" "ally")) 1 }}
{{ $paginator := .Paginate (where .Pages ".Type" "==" "ally") 1 }}
{{ range $paginator.Pages.ByWeight }}
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
{{ .Content }}
{{ end }}
{{ partial "pagination.html" . }}
{{ if (isset .Params "back") }}
<div style="text-align: center;"><a href="{{ .Params.back }}" class="pulse">&laquo; back to where we left off</a></div>
{{ end }}
</main>
{{end}}