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