abdullahtarawneh.com/layouts/_default/list.html

32 lines
793 B
HTML
Raw Permalink Normal View History

2020-10-10 19:09:30 +00:00
{{ define "main" }}
<main>
<header class="section page-header">
<div class="container">
<h1 class="page-title">{{ .Title }}</h1>
</div>
</header>
{{ with .Content }}
<section>
<div class="container">
{{.}}
</div>
</section>
{{ end }}
2020-10-10 19:09:30 +00:00
<section class="section list">
<div class="container">
{{ range .Pages }}
<article class="list-item">
2024-03-14 23:29:33 +00:00
<a class="list-item__link" href="{{ .RelPermalink }}">
{{- $cover := ($.Resources.ByType "image").GetMatch "{*cover*,*thumbnail*,*featured*}" -}}
{{ with $cover }}
2024-03-14 23:29:33 +00:00
<img class="list-item__image" src="{{.RelPermalink}}">
{{end}}
<h2 class="list-item__title">{{ .Title }}</h2>
</a>
2020-10-16 20:00:32 +00:00
<p class="list-item__summary">{{.Summary}}</p>
</article>
2020-10-10 19:09:30 +00:00
{{ end }}
</div>
</section>
</main>
{{ end }}