hugo-theme/layouts/index.html
2024-02-15 15:54:26 -05:00

15 lines
340 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>
<h2>LOL</h2>
</div>
{{ partial "footer.html" . }}