{{- define "stylesheet" -}}
  {{- $scss := resources.Get "/_default/list.scss" -}}
  {{- $style := $scss | resources.ToCSS -}}
  <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 }} 
