Add pagination for taxonomies. Close #20
This commit is contained in:
parent
82727c8e8a
commit
9ea38661fb
8 changed files with 16 additions and 31 deletions
26
layouts/partials/postInfo.html
Normal file
26
layouts/partials/postInfo.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue