Writing finished for now, gotta publish

This commit is contained in:
Madison Scott-Clary
2019-08-28 17:53:57 -07:00
parent 462bdbfd87
commit 97c6d157af
26 changed files with 5266 additions and 2724 deletions

View File

@ -0,0 +1,12 @@
{{ define "main" }}
<main id="main">
{{ .Content }}
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 10 }}
{{ range $paginator.Pages.ByPublishDate.Reverse }}
<h2><a href="{{ .URL }}">{{ .Params.title }}</a> </h2>
<small>{{ dateFormat "Monday, Jan 2, 2006" .Date }}</small>
<p>{{ .Summary }}</p>
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{end}}

View File

@ -0,0 +1,7 @@
{{ define "main" }}
<main id="main">
<h2>{{ .Params.title }}</h2>
<small>{{ dateFormat "Monday, Jan 2, 2006" .Date }}</small>
{{ .Content }}
</main>
{{end}}