2020-11-20 22:39:10 +01:00
|
|
|
{{- 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 -}}
|
2020-09-14 16:24:02 +02:00
|
|
|
|
2020-11-20 22:39:10 +01:00
|
|
|
{{- 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>
|
2020-11-12 09:57:45 +01:00
|
|
|
</div>
|
2020-11-20 22:39:10 +01:00
|
|
|
</main>
|
|
|
|
{{- end }}
|