This commit is contained in:
Madison Scott-Clary
2021-09-01 22:25:24 -07:00
parent 5d25ae8f94
commit 7e2929ea02
4 changed files with 34 additions and 16 deletions

View File

@ -1,12 +1,10 @@
{{ define "main" }}
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
{{ $content := .Content }}
{{ range $paginator.Pages.ByWeight }}
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>
asdf
{{ $content }}
<main id="main">
{{ $paginator := .Paginate (.Pages) 1 }}
{{ template "_internal/pagination.html" . }}
{{ range $paginator.Pages }}
{{ .Content }}
{{ end }}
{{ partial "pagination.html" . }}
{{end}}
{{ template "_internal/pagination.html" . }}
</main>
{{end}}

View File

@ -1,8 +1,3 @@
<header>
<h1>{{ .Site.Title }}</h1>
<nav>
<ul>
<li><a href="/">Home</a></li>
</ul>
</nav>
<h1>{{ .Site.Title }}<small>Limerent Object and other stories</small></h1>
</header>