~alanorth/hugo-theme-bootstrap4-blog

ref: 5797675dbda6a2a0d7f0739daadfdec01aa8f621 hugo-theme-bootstrap4-blog/layouts/partials/recent.html -rw-r--r-- 395 bytes
5797675d — Alan Orth theme.toml: Add demo link 10 months 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>