website/themes/hugo-theme-wave/layouts/partials/article_list.html
Paul Lecuq cbd1c10fff
All checks were successful
continuous-integration/drone/push Build is passing
updated website theme
2023-12-16 00:45:03 +01:00

36 lines
1.1 KiB
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"> {{ end }}
</a>
{{ partial "article_header" . }}
<div class="article-entry" itemprop="articleBody">
<p>{{ .Summary }} ...</p>
<p class="article-more-link">
<a href="{{ .Permalink }}">
Read more
<!--
{{ with .Site.Data.l10n.articles.read_more }}{{ . }}{{ end }}
-->
</a>
</p>
</div>
<!--
{{ partial "article_footer" . }}
-->
</div>
</article>
{{ end }}
{{ partial "pagination" . }}
</section>