website/themes/hugo-theme-wave/layouts/partials/article_list.html

41 lines
1.1 KiB
HTML
Raw Normal View History

2020-01-12 14:14:15 +01:00
<section id="main">
2020-01-12 21:05:46 +01:00
{{ $pages := .Pages }}
{{ if .IsHome }}
{{ $pages = .Site.RegularPages }}
{{ end }}
{{ $paginator := .Paginate $pages }}
<!--
2020-02-09 12:20:47 +01:00
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
-->
2020-01-12 21:05:46 +01:00
{{ range $paginator.Pages }}
<article class="article article-type-post" itemscope="" itemprop="blogPost">
2020-01-12 14:14:15 +01:00
2020-01-12 21:05:46 +01:00
<div class="article-inner">
2020-01-12 14:14:15 +01:00
2020-01-12 21:05:46 +01:00
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
<a href="{{ .Permalink }}" itemprop="url">
2022-08-08 21:00:45 +02:00
<img src="{{ .Site.BaseURL }}/{{ .Params.banner }}" class="article-banner"> {{ end }}
2020-01-12 21:05:46 +01:00
</a>
2020-01-12 14:14:15 +01:00
2020-01-12 21:05:46 +01:00
{{ partial "article_header" . }}
<div class="article-entry" itemprop="articleBody">
<p>
{{ .Summary }} ...
2020-01-12 21:05:46 +01:00
</p>
<p class="article-more-link">
<a href="{{ .Permalink }}">
Read more
<!--
2020-02-09 12:20:47 +01:00
{{ with .Site.Data.l10n.articles.read_more }}{{ . }}{{ end }}
-->
</a>
2020-01-12 21:05:46 +01:00
</p>
</div>
<!--
2020-02-09 12:20:47 +01:00
{{ partial "article_footer" . }}
-->
2020-01-12 21:05:46 +01:00
</div>
</article>
{{ end }}
{{ partial "pagination" . }}
</section>