website/layouts/_default/list.html
2020-11-20 22:39:10 +01:00

28 lines
1 KiB
HTML

{{- define "stylesheet" -}}
{{- $scss := resources.Get "/_default/list.scss" -}}
{{- $style := $scss | resources.ToCSS -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" rel="preload" />
{{- end -}}
{{- define "main" }}
<main>
<div class="container">
<section class="section posts">
<div class="section posts inner">
{{- range .Pages }}
<a href="{{ .Permalink }}">
<article>
<h1><span>{{ .Title }}</span></h1>
{{ with .Description }}<p class="description">{{ . }}</p>{{ end }}
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
{{- with .Params.author }}<span class="author">by {{ . }}</span>{{ end }}
</p>
</article>
</a>
{{- end }}
</div>
</section>
</div>
</main>
{{- end }}