Add favorite posts. Close #19
This commit is contained in:
parent
518f134ac2
commit
82727c8e8a
13 changed files with 55 additions and 88 deletions
|
@ -1,27 +1,11 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<h1>{{ i18n "category" | humanize }}: {{ .Title }}</h1>
|
||||
<div class="article-info">
|
||||
<div class="post-info">
|
||||
<a href="{{ "categories/" | absLangURL }}">{{ i18n "toAllCategories" | humanize }}</a>
|
||||
</div>
|
||||
{{ range .Data.Pages }}
|
||||
<article class="post-list">
|
||||
<header>
|
||||
<h1>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div class="content post-summary">
|
||||
{{ .Summary | safeHTML }}
|
||||
</div>
|
||||
{{ partial "articleInfoDate.html" . }}
|
||||
<!-- {{ if .Truncated }}
|
||||
<div class="read-more">
|
||||
<a href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
|
||||
</div>
|
||||
{{ end }} -->
|
||||
</article>
|
||||
{{ partial "postSummary.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
|
@ -1,28 +1,11 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<h1>{{ i18n "tag" | humanize }}: {{ .Title }}</h1>
|
||||
<div class="article-info">
|
||||
<div class="post-info">
|
||||
<a href="{{ "tags/" | absURL }}">{{ i18n "toAllTags" | humanize}}</a>
|
||||
</div>
|
||||
{{ range .Data.Pages }}
|
||||
<article class="post-list">
|
||||
<header>
|
||||
<h1>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div class="content post-summary">
|
||||
{{ .Summary | safeHTML }}
|
||||
</div>
|
||||
{{ partial "articleInfoDate.html" . }}
|
||||
<!-- {{ if .Truncated }}
|
||||
<div class="read-more">
|
||||
<a href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
|
||||
</div>
|
||||
{{ end }} -->
|
||||
|
||||
</article>
|
||||
{{ partial "postSummary.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue