~alanorth/hugo-theme-bootstrap4-blog

ref: 26e0a9a25916cea4292c478864348e5f3cd40bc5 hugo-theme-bootstrap4-blog/layouts/partials/recent.html -rw-r--r-- 395 bytes
26e0a9a2 — Alan Orth layouts/partials/recent.html: Only list "Regular" pages 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
  <section class="sidebar-module">
    <h4>{{ i18n "recentPosts" }}</h4>
    <ol class="list-unstyled">
{{ $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>
  </section>