abdullahtarawneh.com/layouts/blog/list.html

33 lines
951 B
HTML
Raw Normal View History

2021-12-20 11:27:10 +00:00
{{ define "main" }}
<main id="blog">
<header class="section page-header">
<div class="container">
<h1 class="page-title">{{ .Title }}</h1>
</div>
</header>
<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 }}">
2021-12-20 11:27:10 +00:00
{{ with .Params.cover }}
<img class="list-item__image" src="{{.}}">
{{end}}
<h2 class="list-item__title">{{ .Title }}</h2>
</a>
<p class="list-item__summary">{{.Summary}}</p>
<div class="list-item__meta">
<datetime class="list-item__date">{{ .Date.Format "January 2, 2006" }}</datetime>
<span class="list-item__wordcount">{{.WordCount}} words</span>
{{ with .Params.tags }}
{{ range . }}
<a class="tag" href='{{"tags/" | absURL }}{{. | urlize}}'>{{.}}</a>
{{ end }}
{{ end }}
</div>
</article>
{{ end }}
</div>
</section>
</main>
{{ end }}