{{- define "stylesheet" -}}
    {{- $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" />
{{- end -}}

{{- define "main" }}

    <main>
      <h1 class="title">{{ .Title }}</h1>
      <p>{{ .Content }}</p>
    {{- range .Pages }}
      <p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date | time.Format ":date_long" }}</span> </p>
    {{- end }}
    </main>

{{- end }} 
