website/layouts/index.html

7 lines
244 B
HTML

{{- define "main" }}
<main>
{{- range first 8 (where .Site.RegularPages "Type" "post") }}
<p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date.Format "2 January 2006" }}</span> </p>
{{- end }}
</main>
{{- end }}