Poly, sex, some gender

This commit is contained in:
Madison Scott-Clary
2019-09-23 23:45:53 -07:00
parent 46d07ea7a4
commit 1ad3fa4ae3
31 changed files with 441 additions and 8 deletions

View File

@ -3,6 +3,7 @@
{{ .Content }}
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
{{ range $paginator.Pages.ByWeight }}
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
{{ .Content }}
{{ end }}
{{ partial "pagination.html" . }}

View File

@ -1,5 +1,6 @@
{{ define "main" }}
<main id="main">
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
{{ .Content }}
</main>
{{end}}

View File

@ -3,6 +3,7 @@
{{ .Content }}
{{ $paginator := .Paginate (and (where .Pages ".Params.date" "!=" nil) (where .Pages ".Type" "==" "ally")) 1 }}
{{ range $paginator.Pages.ByWeight }}
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
{{ .Content }}
{{ end }}
{{ partial "pagination.html" . }}

View File

@ -4,7 +4,7 @@
{{ $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>
<small>{{ .Date.Format "Monday, Jan 2, 2006" }}</small>
<p>{{ .Summary }}</p>
{{ end }}
{{ partial "pagination.html" . }}

View File

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

View File

@ -3,7 +3,7 @@
<nav class="paginator" aria-label="page">
<ul class="pagination pagination-sm">
<li class="page-item{{ if not $paginator.HasPrev }} disabled{{ end }}">
<a class="page-link" href="{{ if $paginator.HasPrev }}{{ $paginator.Prev.URL }}{{ else }}javascript:void(0){{ end }}"><svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 20 0 l -6 8 l 6 8" /></svg> Previous</a>
<a class="page-link"{{ if $paginator.HasPrev }} href="{{ $paginator.Prev.URL }}"{{ end }}><svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 20 0 l -6 8 l 6 8" /></svg> Previous</a>
</li>
{{ if lt $paginator.TotalPages 10 }}
{{ range $paginator.Pagers }}
@ -15,7 +15,7 @@
<li class="page-item too-many">Page {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li>
{{ end }}
<li class="page-item{{ if not $paginator.HasNext }} disabled{{ end }}">
<a class="page-link" href="{{ if $paginator.HasNext }}{{ $paginator.Next.URL }}{{ else }}javascript:void(0){{ end }}">Next <svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 0 0 l 6 8 l -6 8" /></svg></a>
<a class="page-link"{{ if $paginator.HasNext }} href="{{ $paginator.Next.URL }}"{{ end }}>Next <svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 0 0 l 6 8 l -6 8" /></svg></a>
</li>
</ul>
</nav>

View File

@ -3,6 +3,7 @@
{{ .Content }}
{{ $paginator := .Paginate (where .Pages ".Params.date" "!=" nil) 1 }}
{{ range $paginator.Pages.ByWeight }}
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
{{ .Content }}
{{ end }}
{{ partial "pagination.html" . }}

View File

@ -1,5 +1,6 @@
{{ define "main" }}
<main id="main">
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
{{ .Content }}
</main>
{{end}}

View File

@ -76,6 +76,12 @@ main {
padding: 1rem;
font-family: 'Gentium Book Basic', serif;
}
.date {
font-size: 10pt;
opacity: 0.3;
font-family: 'Merriweather Sans', sans-serif;
margin: 0;
}
footer {
color: #888;
font-size: 12pt;
@ -177,13 +183,13 @@ ul.pagination li:first-of-type {
}
ul.pagination .page-item.too-many {
color: #666;
opacity: 0.5;
margin: 0 14px 0 7px;
font-style: italic;
}
ul.pagination .page-item.disabled a {
color: #666;
opacity: 0.4;
border: none;
cursor: text;
}