hugo-theme-bootstrap5-blog/layouts/partials/recent.html
Alan Orth d492b96562
All checks were successful
continuous-integration/drone/push Build is passing
layouts: Fix a few outdated .font-italic uses
In Bootstrap v5 the font utility classes were renamed.
2020-12-12 17:35:47 +02:00

10 lines
386 B
HTML

<div class="p-4">
<h4 class="fst-italic">Archives</h4>
<ol class="list-unstyled mb-0">
{{ $num_recent_posts := (index .Site.Params.sidebar "num_recent_posts" | default 5) }}
{{ range first $num_recent_posts (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
<li><a href="{{.RelPermalink}}">{{.Title | markdownify }}</a></li>
{{ end }}
</ol>
</div>