hugo-theme-anubis2/layouts/index.html
Dmitry Kolosov 4495f31d48 Fix more tag
2020-01-27 23:05:33 +03:00

46 lines
1.3 KiB
HTML

{{ define "main" }}
{{ range .Paginator.Pages }}
<article class="post-list">
<header>
<h1>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1>
</header>
<div class="article-info">
{{ if .Params.date }}
<div class="article-date">{{ .Params.date.Format "2006-01-02" }}</div>
{{ end }}
{{ if .Params.categories }}
<ul class="article-categories">
{{ range .Params.categories }}
<li><a href="/categories/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ if and (.Params.categories) (.Params.tags) }}
|
{{ end }}
{{ if .Params.tags }}
<ul class="article-tags">
{{ range .Params.tags }}
<li><a href="/tags/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
</div>
<div class="content">
{{ .Summary | safeHTML }}
</div>
{{ if .Truncated }}
<div class="read-more">
<a href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
</div>
{{ end }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
{{ end }}