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" }}
|
|
|
|
<header id="blog-header">
|
|
|
|
<h1 class="title">{{ .Title }}</h1>
|
2023-03-15 15:08:49 +01:00
|
|
|
<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>
|
2023-03-16 16:07:52 +01:00
|
|
|
<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>
|
2023-03-15 15:08:49 +01:00
|
|
|
</p>
|
2023-03-15 14:29:23 +01:00
|
|
|
</header>
|
|
|
|
{{ end }}
|
|
|
|
|
2023-01-15 00:19:35 +01:00
|
|
|
{{- define "main" }}
|
|
|
|
<main>
|
|
|
|
{{ .Content -}}
|
|
|
|
</main>
|
|
|
|
{{- end }}
|