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

@ -5,24 +5,7 @@
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range (.Paginate $pages).Pages }}
<article class="post-list">
<header>
<h1>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1>
</header>
<div class="content post-summary">
{{ .Summary | safeHTML }}
</div>
<!-- {{ if .Truncated }}
<div class="read-more">
<a href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
</div>
{{ end }} -->
{{ partial "articleInfoFull.html" . }}
</article>
{{ partial "postSummary.html" . }}
{{ end }}
{{ partial "pagination.html" . }}