website/layouts/404.html
2020-09-14 16:24:02 +02:00

29 lines
929 B
HTML

{{ define "stylesheet" }}{{ $sass := resources.Get "scss/index.scss" }}{{ $style := $sass | resources.ToCSS }}
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{ 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 first 3 (where .Site.RegularPages "Type" "post") }}
<article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<p class="date" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">{{ .Date.Format "2 January 2006" }}</p>
{{ with .Description }}
<p>{{ . }}</p>
{{ end }}
{{ with .Params.featured_image }}
<img src="{{ . | absURL }}">
{{ end }}
</article>
{{ end }}
</section>
</main>
{{ end }}