~alanorth/hugo-theme-bootstrap4-blog

ref: 1faeef487b7f412702ecca10121ada62d0f25664 hugo-theme-bootstrap4-blog/layouts/partials/recent.html -rw-r--r-- 388 bytes
1faeef48 — Alan Orth Bump version to 1.3.1 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.Pages "Section" "in" .Site.Params.mainSections) }}
<li><a href="{{.RelPermalink}}">{{.Title | markdownify }}</a></li>
{{ end }}
    </ol>
  </section>