Add pagination for taxonomies. Close #20

This commit is contained in:
Dmitry Kolosov 2020-06-07 13:36:02 +03:00
parent 82727c8e8a
commit 9ea38661fb
8 changed files with 16 additions and 31 deletions

View file

@ -0,0 +1,26 @@
{{ $dateFormat := "2006-01-02" }}
{{ if .Site.Params.dateFormat }}
{{ $dateFormat = .Site.Params.dateFormat }}
{{ end }}
<div class="post-info">
{{ if .Params.date }}
<div class="post-date">{{ .Params.date.Format $dateFormat }}</div>
{{ end }}
<div class="post-taxonomies">
{{ if .Params.categories }}
<ul class="post-categories">
{{ range .Params.categories }}
<li><a href="{{ "categories/" | absLangURL }}{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ if .Params.tags }}
<ul class="post-tags">
{{ range .Params.tags }}
<li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
</div>
</div>