abdullahtarawneh.com/layouts/_default/list.html

32 lines
787 B
HTML

{{ 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 }}
<section class="section list">
<div class="container">
{{ range .Pages }}
<article class="list-item">
<a class="list-item__link" href="{{ .Permalink }}">
{{- $cover := ($.Resources.ByType "image").GetMatch "{*cover*,*thumbnail*,*featured*}" -}}
{{ with $cover }}
<img class="list-item__image" src="{{.Permalink}}">
{{end}}
<h2 class="list-item__title">{{ .Title }}</h2>
</a>
<p class="list-item__summary">{{.Summary}}</p>
</article>
{{ end }}
</div>
</section>
</main>
{{ end }}