hugo-theme-anubis2/layouts/index.html

44 lines
1.4 KiB
HTML
Raw Normal View History

2020-01-12 07:51:51 +01:00
{{ define "main" }}
2020-02-15 20:26:47 +01:00
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range (.Paginate $pages).Pages }}
2020-01-12 07:51:51 +01:00
<article class="post-list">
<header>
<h1>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1>
</header>
2020-02-02 16:01:10 +01:00
<div class="content">
{{ .Summary | safeHTML }}
</div>
<!-- {{ if .Truncated }}
<div class="read-more">
<a href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
</div>
{{ end }} -->
2020-01-12 07:51:51 +01:00
<div class="article-info">
{{ if .Params.date }}
<div class="article-date">{{ .Params.date.Format "2006-01-02" }}</div>
{{ end }}
2020-02-15 20:07:42 +01:00
<div class="article-taxonomies">
{{ if .Params.categories }}
<ul class="article-categories">
{{ range .Params.categories }}
2020-02-15 21:34:25 +01:00
<li><a href="categories/{{ . }}">{{ . }}</a></li>
2020-02-15 20:07:42 +01:00
{{ end }}
</ul>
2020-01-27 20:38:45 +01:00
{{ end }}
2020-02-15 20:07:42 +01:00
{{ if .Params.tags }}
<ul class="article-tags">
{{ range .Params.tags }}
2020-02-15 21:34:25 +01:00
<li><a href="tags/{{ . }}">#{{ . }}</a></li>
2020-02-15 20:07:42 +01:00
{{ end }}
</ul>
2020-01-12 07:51:51 +01:00
{{ end }}
2020-02-15 20:07:42 +01:00
</div>
2020-01-12 07:51:51 +01:00
</div>
</article>
{{ end }}
{{ partial "pagination.html" . }}
{{ end }}