site/themes/rb/layouts/index.html

13 lines
242 B
HTML

{{ 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 }}