website/layouts/_default/list.html

18 lines
646 B
HTML
Raw Normal View History

{{- 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 -}}
2020-09-14 16:24:02 +02:00
{{- define "main" }}
<main>
<h1 class="title">{{ .Title }}</h1>
<p>{{ .Content }}</p>
{{- range .Pages }}
2021-05-24 22:24:58 +02:00
<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 }}