abdullahtarawneh.com/layouts/shortcodes/index/latest-posts.html
2024-06-03 07:39:43 -05:00

8 lines
208 B
HTML

{{ range first ( or (.Get 0) 5 ) (where .Site.RegularPages "Section" "blog") }}
<article class="h-entry">
<a href="{{ .Permalink }}">
<h3>{{ .Title }}</h3>
</a>
<p>{{ .Summary }}</p>
</article>
{{ end }}