hugo-theme/layouts/index.html

13 lines
298 B
HTML

{{ partial "header.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" . }}