hugo-theme/layouts/index.html

13 lines
298 B
HTML
Raw Normal View History

2024-01-29 04:53:34 +00:00
{{ partial "header.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" . }}