site/themes/rb/layouts/index.html

13 lines
242 B
HTML
Raw Normal View History

2024-06-05 20:43:19 +02:00
{{ define "main" }}
{{ .Content }}
<h3>Latest blog posts</h3>
{{ with .GetPage "blog" }}
<ul id="posts">
{{- range first 5 .Pages }}
{{ .Render "li" }}
{{- end }}
</ul>
<a href="{{ .Permalink }}">Older</a>
{{ end }}
{{ end }}