Add pagination for taxonomies. Close #20
This commit is contained in:
parent
82727c8e8a
commit
9ea38661fb
8 changed files with 16 additions and 31 deletions
|
@ -10,7 +10,7 @@
|
|||
<header>
|
||||
<h2 class="post-title{{ if .Params.favorite }} favorite{{end}}"><a href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h2>
|
||||
</header>
|
||||
{{ partial "postInfoFull.html" . }}
|
||||
{{ partial "postInfo.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ partial "postInfoFull.html" . }}
|
||||
{{ partial "postInfo.html" . }}
|
||||
</article>
|
||||
{{ if .Site.DisqusShortname }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
|
11
layouts/_default/taxonomy.html
Normal file
11
layouts/_default/taxonomy.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ i18n .Data.Singular | humanize }}: {{ .Title }}</h1>
|
||||
<div class="post-info">
|
||||
<a href="{{ (printf "%s/%s" .Site.LanguagePrefix .Data.Plural) | absLangURL }}">{{ i18n (printf "toAll%s" (.Data.Plural | humanize )) | humanize }}</a>
|
||||
</div>
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ partial "postSummary.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue