Commit dfdb6745 authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'feature/taxonomy-pages' into 'fork'

Don't paginate + add counts to taxonomy pages

See merge request !49
parents 16bbca78 84993064
......@@ -3,22 +3,12 @@
<h1>{{ .Title }}</h1>
<div class="catalogue">
<ul>
{{- range (.Paginate .Data.Pages).Pages -}}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ $terms := index .Site.Taxonomies .Data.Plural }}
{{- range .Data.Pages -}}
<li><a href="{{ .Permalink }}">{{ .Title }} ({{ len (index $terms .Data.Term) }})</a></li>
{{- end -}}
</ul>
</div>
<div class="pagination">
{{- if .Paginator.HasPrev -}}
<a href="{{ .Paginator.Prev.URL }}" class="left arrow">&#8592;</a>
{{- end -}}
{{- if .Paginator.HasNext -}}
<a href="{{ .Paginator.Next.URL }}" class="right arrow">&#8594;</a>
{{- end -}}
<span>{{ .Paginator.PageNumber }}</span>
</div>
</main>
{{ end }}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment