hugo-theme-zirakzigil/layouts/partials/sidebar.html

13 lines
346 B
HTML

<aside class="flex justify-center">
<div>
<ul class="menu menu-horizontal bg-base-200 rounded-box">
<li class="justify-center">
LATEST POSTS:
</li>
{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
</aside>