website/themes/hugo-theme-wave/layouts/partials/article_list.html
Paul Lecuq d24753ddf7
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
some error fixes
2024-04-28 17:48:24 +02:00

31 lines
960 B
HTML

<section id="main">
{{ $pages := .Pages }}
{{ if .IsHome }}
{{ $pages = .Site.RegularPages }}
{{ end }}
{{ $paginator := .Paginate $pages }}
<!--
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
-->
{{ range $paginator.Pages }}
<article class="article article-type-post" itemscope="" itemprop="blogPost">
<div class="article-inner">
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
<a href="{{ .Permalink }}" itemprop="url">
<img src="{{ .Site.BaseURL }}/{{ .Params.banner }}" class="article-banner">
</a>
{{ end }}
{{ partial "article_header" . }}
<div class="article-entry" itemprop="articleBody">
<p>{{ .Summary }} ...</p>
<p class="article-more-link">
<a href="{{ .Permalink }}">
Read more
</a>
</p>
</div>
</div>
</article>
{{ end }}
{{ partial "pagination" . }}
</section>