hugo-theme-flat/layouts/partials/side-recent.html
2022-05-18 13:50:07 +08:00

13 lines
302 B
HTML

<div class="side-recent">
<h2 class="side-title">Recent {{ .Section | humanize }}</h2>
<hr />
<ul>
{{ range first 5 .RegularPages.ByDate.Reverse }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</div>