1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-22 10:22:19 +01:00
hugo-theme-bootstrap4-blog/layouts/partials/recent.html

10 lines
368 B
HTML
Raw Normal View History

<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 "Type" "post") }}
<li><a href="{{.RelPermalink}}">{{.Title | markdownify }}</a></li>
{{ end }}
</ol>
</section>