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,2 +0,0 @@
---
---

3
content/_index.md Normal file
View File

@ -0,0 +1,3 @@
---
type: serial
---

View File

@ -1,5 +1,6 @@
---
date: 2019-09-23
weight: 25
---
> You were gone.

View File

@ -1,5 +1,6 @@
---
date: 2019-09-23
weight: 26
---
Apophenia

View File

@ -1,6 +1,6 @@
---
date: 2019-10-25
weight: 26
weight: 27
---
I'm sorry this is taking so long.

3
content/gender/01.md Normal file
View File

@ -0,0 +1,3 @@
---
date: 2019-10-25
---

View File

@ -26,6 +26,7 @@ I'm so tired.
### New content
* [Suicide](/self-harm/suicide)
* [ally 27](/27)
* I wrote a lot about gender but I'm not ready to show it yet.
### Updated content

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}}