resilien/layouts/partials/blog-article-last.html

8 lines
199 B
HTML

<ul>
{{ $headless := .Site.GetPage "/blog/" }}
{{ $lastnews := first 3 (sort $headless.Pages "Date" "desc") }}
{{ range $lastnews }}
<li>{{ partial "article-link" . }}</li>
{{ end }}
</ul>