abdullahtarawneh.com/layouts/shortcodes/index/latest-posts.html

8 lines
208 B
HTML
Raw Normal View History

{{ 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 }}