hugo-theme/layouts/index.html
2024-01-28 23:53:34 -05:00

13 lines
271 B
HTML

{{ partial "header.html" . }}
{{ .Content }}
<h2>Recent Posts</h2>
<ul>
{{ range first 5 (where site.RegularPages "Type" "in" site.Params.mainSections).ByTitle }}
<li><a href="{{ .RelPermalink }}">{{ .Title}}</a></li>
{{ end }}
</ul>
{{ partial "footer.html" . }}