personal-site/layouts/partials/sidebar.html

18 lines
437 B
HTML
Raw Normal View History

2021-01-02 20:17:33 +00:00
<aside>
2021-01-02 22:35:28 +00:00
<div class="recent">
<div >
<h2 class="h1 recent-header">LATEST POSTS</h3>
2021-01-02 20:17:33 +00:00
</div>
<div>
2021-01-02 22:35:28 +00:00
<ul class="recent-list">
2021-06-06 19:05:06 +00:00
{{ range first 5 (where .Site.Pages "Type" "post") }}
2021-01-02 22:35:28 +00:00
<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>
2021-01-02 20:17:33 +00:00
{{ end }}
</ul>
</div>
</div>
</aside>