|
|
|
@ -4,9 +4,16 @@
|
|
|
|
|
{{ if eq $pagination.PageNumber 1 }}
|
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
|
{{ partial "content.html" .Content }}
|
|
|
|
|
<hr>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ $scratch := newScratch }}
|
|
|
|
|
{{ $scratch.Add "i" 0 }}
|
|
|
|
|
{{ range $pagination.Pages }}
|
|
|
|
|
{{ if or ($scratch.Get "i" | ne 0) (eq $pagination.PageNumber 1) }}
|
|
|
|
|
<br>
|
|
|
|
|
<hr>
|
|
|
|
|
<br>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ $scratch.Set "i" ($scratch.Get "i" | add 1) }}
|
|
|
|
|
<article>
|
|
|
|
|
<header>
|
|
|
|
|
<h2><a href="{{ .RelPermalink }}">{{ partial "content.html" .Title }}</a></h2>
|
|
|
|
@ -15,7 +22,6 @@
|
|
|
|
|
<br>
|
|
|
|
|
{{ partial "content.html" .Content | truncate 500 }} <a href="{{ .RelPermalink }}">Read more »</a>
|
|
|
|
|
</article>
|
|
|
|
|
<br>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ partial "pagination.html" $pagination }}
|
|
|
|
|
{{ end }}
|
|
|
|
|