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

42 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">
<img src="{{ .Site.BaseURL }}{{ .Params.banner }}" class="article-banner"> {{ end }}
</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>
2020-02-09 12:20:47 +01:00
{{ .Summary }} ...
2020-01-12 21:05:46 +01:00
</p>
<p class="article-more-link">
2020-02-09 12:20:47 +01:00
<a href="{{ .Permalink }}">
Read more
<!--
{{ 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" . }}
2020-02-09 12:20:47 +01:00
</section>