Add favorite posts. Close #19
This commit is contained in:
parent
518f134ac2
commit
82727c8e8a
13 changed files with 55 additions and 88 deletions
16
layouts/partials/postSummary.html
Normal file
16
layouts/partials/postSummary.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<article class="post-list">
|
||||
<header>
|
||||
<h1 class="post-title{{ if .Params.favorite }} favorite{{end}}"><a href="{{ .RelPermalink }}">{{ trim .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 "postInfoFull.html" . }}
|
||||
</article>
|
Loading…
Add table
Add a link
Reference in a new issue