jakubb-hugo/layouts/index.html
2024-02-11 15:21:08 -05:00

14 lines
327 B
HTML

{{ partial "header.html" . }}
{{ partial "nav.html" . }}
<div class="content">
{{ .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>
</div>
{{ partial "footer.html" . }}