2023-01-15 00:19:35 +01:00
|
|
|
{{- define "stylesheet" -}}
|
2023-01-15 01:03:14 +01:00
|
|
|
{{- $style := resources.Get "/scss/blog.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}}
|
2023-01-15 00:19:35 +01:00
|
|
|
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
|
|
|
|
{{- end -}}
|
|
|
|
|
2023-03-15 14:29:23 +01:00
|
|
|
{{- define "header" }}
|
2023-03-18 20:55:12 +01:00
|
|
|
<header id="blog-header">
|
|
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
|
|
<p>
|
|
|
|
<span
|
|
|
|
id="blog-post-published"
|
|
|
|
title="{{ i18n "blog-post-published" }} {{ .Date | time.Format "2. January 2006, 15:04 MST" }}"
|
|
|
|
>
|
|
|
|
{{ .Date | time.Format "2. January 2006" }}
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
id="blog-post-updated"
|
|
|
|
title="{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006, 15:04 MST" }}"
|
|
|
|
>
|
|
|
|
{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006" }}
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</header>
|
2023-03-15 14:29:23 +01:00
|
|
|
{{ end }}
|
|
|
|
|
2023-01-15 00:19:35 +01:00
|
|
|
{{- define "main" }}
|
|
|
|
<main>
|
|
|
|
{{ .Content -}}
|
2023-03-18 20:55:12 +01:00
|
|
|
{{ partial "moreposts.html" . }}
|
2023-01-15 00:19:35 +01:00
|
|
|
</main>
|
|
|
|
{{- end }}
|