Add favorite posts. Close #19

This commit is contained in:
Dmitry Kolosov 2020-06-06 22:05:21 +03:00
parent 518f134ac2
commit 82727c8e8a
13 changed files with 55 additions and 88 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>