Bring up to date

This commit is contained in:
Madison Scott-Clary
2021-04-24 19:48:25 -07:00
parent 8c708ce377
commit 0a628b6e4c
58 changed files with 2459 additions and 20 deletions

View File

@ -1,10 +1,12 @@
{{ define "main" }}
<div class="content wrapper">
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 6 }}
<link rel="stylesheet" type="text/css" href="/css/pagination.css" />
<h2>{{ .Title }}</h2>
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 10 }}
{{ if eq $paginator.PageNumber 1 }}
{{ .Content }}
{{ end }}
<h2>Recent pieces</h2>
{{ template "_internal/pagination.html" . }}
<ol class="post-card-box clearfix">
{{ range $paginator.Pages.ByPublishDate.Reverse }}
<li>
@ -25,7 +27,6 @@
</li>
{{ end }}
</ol>
<link rel="stylesheet" type="text/css" href="/css/pagination.css" />
{{ template "_internal/pagination.html" . }}
</div>
{{ end }}