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 -}}
|
|
|
|
|
|
|
|
{{- define "main" }}
|
|
|
|
|
|
|
|
<main>
|
|
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
|
|
<p>{{ .Content }}</p>
|
|
|
|
{{- range .Pages }}
|
|
|
|
<p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date.Day }}. {{ if eq .Params.lang "de"}} {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ else }} {{ .Date.Month }} {{ end }} {{ .Date.Year }}</span> </p>
|
|
|
|
{{- end }}
|
|
|
|
</main>
|
|
|
|
|
|
|
|
{{- end }}
|