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

8 lines
199 B
HTML
Raw Permalink Normal View History

2022-01-14 12:33:54 +01:00
<ul>
{{ $headless := .Site.GetPage "/blog/" }}
{{ $lastnews := first 3 (sort $headless.Pages "Date" "desc") }}
{{ range $lastnews }}
<li>{{ partial "article-link" . }}</li>
{{ end }}
</ul>