website/layouts/_default/list.html

17 lines
538 B
HTML
Raw Permalink Normal View History

{{- define "stylesheet" -}}
2023-01-15 01:03:14 +01:00
{{- $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 -}}
2020-09-14 16:24:02 +02:00
{{- define "main" }}
<main>
<h1 class="title">{{ .Title }}</h1>
<p>{{ .Content }}</p>
{{- range .Pages }}
2023-03-05 17:40:50 +01:00
<p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date | time.Format ":date_long" }}</span> </p>
{{- end }}
</main>
{{- end }}