{{- $home := .Site.Params.home -}} {{ if ne $home.showLatestPosts false }}

{{ default "Latest writing" $home.blogTitle }}

{{ with $home.blogSubtitle }}

{{ . }}

{{ end }}
{{ $limit := cond (gt (int $home.latestPostsLimit) 0) (int $home.latestPostsLimit) 3 }} {{ $posts := first $limit (where .Site.RegularPages "Section" "blog") }}
{{ range $posts }} {{ partial "components/post-card.html" (dict "Page" . "Root" $) }} {{ else }}

No posts yet. Add some under content/blog.

{{ end }}
View all posts
{{ end }}