2017-03-11 23:20:50 +01:00
|
|
|
<section class="sidebar-module">
|
|
|
|
<h4>{{ i18n "recentPosts" }}</h4>
|
|
|
|
<ol class="list-unstyled">
|
|
|
|
{{ $num_recent_posts := (index .Site.Params.sidebar "num_recent_posts" | default 5) }}
|
2019-05-26 09:28:31 +02:00
|
|
|
{{ range first $num_recent_posts (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
|
2017-03-11 23:20:50 +01:00
|
|
|
<li><a href="{{.RelPermalink}}">{{.Title | markdownify }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ol>
|
|
|
|
</section>
|