2020-09-22 15:35:44 +02:00
|
|
|
{{ define "stylesheet" }}{{ $scss := resources.Get "/_default/list.scss" }}{{ $style := $scss | resources.ToCSS }}
|
2020-09-26 17:57:12 +02:00
|
|
|
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" rel="preload" />
|
2020-09-14 16:24:02 +02:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main class="container">
|
|
|
|
<section>
|
|
|
|
<header>
|
|
|
|
<h1>{{ .Params.heading }}</h1>
|
|
|
|
<span class="subtitle">{{.Params.subheading}}</span>
|
|
|
|
</header>
|
|
|
|
{{ .Content }}
|
|
|
|
</section>
|
|
|
|
<section class="section-articles">
|
|
|
|
{{ range .Pages }}
|
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
<article>
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}"><span class="date">{{ .Date.Format "2 January 2006" }}</span> <span class="author">by {{ .Params.author }}</span></p>
|
|
|
|
{{ with .Description }}
|
|
|
|
<p>{{ . }}</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Params.featured_image }}
|
2020-09-26 17:57:12 +02:00
|
|
|
<img src="{{ . | relURL }}" loading="lazy">
|
2020-09-14 16:24:02 +02:00
|
|
|
{{ end }}
|
|
|
|
</article>
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
{{ end }}
|