hugo-geekblog/layouts/_default/list.html

41 lines
1.2 KiB
HTML
Raw Normal View History

2020-07-06 18:55:32 +00:00
{{ define "main" }}
{{ $pages := where .RegularPages "Type" "in" .Site.Params.mainSections }}
{{ if (eq .Kind "home") }}
{{ $pages = where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ end }}
{{ $paginator := .Paginate $pages }}
{{ range $paginator.Pages }}
<article class="gblog-post">
<header class="gblog-post__header">
<h1 class="gblog-post__title">
<a href="{{ .RelPermalink }}">{{ partial "title" . }}</a>
</h1>
</header>
<section class="gblog-markdown">
{{ .Summary }}
</section>
<div class="gblog-post__readmore">
{{ if .Truncated }}
<a
class="flex-inline align-center fake-link"
title="Read full post"
href="{{ .RelPermalink }}"
>
2022-01-12 20:43:53 +00:00
Read full post
<i class="gblog-icon">gblog_arrow_right</i>
</a>
{{ end }}
</div>
<footer class="gblog-post__footer">
<div class="flex flex-wrap align-center gblog-post__meta">
{{ partial "metadata.html" . }}
</div>
</footer>
</article>
{{ end }}
{{ partial "pagination.html" . }}
2020-07-06 18:55:32 +00:00
{{ end }}