personal-site/layouts/partials/sidebar.html
2021-01-03 00:35:28 +02:00

18 lines
468 B
HTML

<aside>
<div class="recent">
<div >
<h2 class="h1 recent-header">LATEST POSTS</h3>
</div>
<div>
<ul class="recent-list">
{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
<li class="recent-block recent-block--right">
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <br>
<time class="recent-block__time">{{ .Date.Format "02.01.2006" }}</time>
</li>
{{ end }}
</ul>
</div>
</div>
</aside>