2020-12-07 13:13:09 +01:00
|
|
|
<div class="p-4">
|
2020-12-12 16:35:47 +01:00
|
|
|
<h4 class="fst-italic">Archives</h4>
|
2020-12-07 13:13:09 +01:00
|
|
|
<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>
|