hugo-theme-flat/layouts/partials/side-recent.html
2022-04-27 21:54:00 +08:00

12 lines
333 B
HTML

<div class="side-recent">
<h2 class="side-title">Recent Posts</h2>
<hr />
<ul>
{{ range first 5 (where .Site.RegularPages ".Type" "in" .Site.Params.MainSections).ByDate.Reverse }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</div>