hugo-theme/layouts/index.html

14 lines
327 B
HTML
Raw Normal View History

2024-01-29 04:53:34 +00:00
{{ partial "header.html" . }}
2024-02-11 20:21:08 +00:00
{{ partial "nav.html" . }}
<div class="content">
2024-01-29 04:53:34 +00:00
{{ .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>
2024-01-29 04:53:34 +00:00
{{ partial "footer.html" . }}