2020-11-20 22:39:10 +01:00
|
|
|
{{- define "stylesheet" -}}
|
2023-01-15 01:03:14 +01:00
|
|
|
{{- $style := resources.Get "/scss/default.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}}
|
|
|
|
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
|
2020-11-20 22:39:10 +01:00
|
|
|
{{- end -}}
|
2020-09-14 16:24:02 +02:00
|
|
|
|
2021-03-05 19:35:05 +01:00
|
|
|
{{- define "main" }}
|
|
|
|
|
2020-11-20 22:39:10 +01:00
|
|
|
<main>
|
2021-05-15 10:15:51 +02:00
|
|
|
<h1 class="title">{{ .Title }}</h1>
|
2021-07-29 14:34:03 +02:00
|
|
|
<p>{{ .Content }}</p>
|
2021-03-05 19:35:05 +01:00
|
|
|
{{- range .Pages }}
|
2023-03-05 17:40:50 +01:00
|
|
|
<p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date | time.Format ":date_long" }}</span> </p>
|
2021-03-05 19:35:05 +01:00
|
|
|
{{- end }}
|
2020-11-20 22:39:10 +01:00
|
|
|
</main>
|
2021-03-05 19:35:05 +01:00
|
|
|
|
|
|
|
{{- end }}
|