You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
724 B

<h2>{{ .Subject }}</h2>
<ul class="index-recent-posts">
{{ range $post := .Posts }}
<a href="/post/{{ $post.ID }}">
<li>
<div>
<h4 class="index-recent-posts-title">{{ $post.Title }}</h4>
<p class="datetimebox">{{ FormatTimestamp $post.UpdatedAt }}</p>
</div>
</li>
</a>
{{ end }}
</ul>
<div class="paginate">
<ul>
<a href="/{{ StrToLower .Subject }}?page=0"><li>&lt;</li></a>
{{ $subj := StrToLower .Subject }}
{{ range $i := Iterate .PageCount }}
<a href="/{{ $subj }}?page={{ $i }}"><li>{{ PlusInt $i 1 }}</li></a>
{{end}}
<a href="/{{ StrToLower .Subject }}?page={{ MinusInt .PageCount 1 }}"><li>&gt;</li></a>
</ul>
</div>