{{ define "canvas-mode" }}hero{{ end }} {{ define "main" }} {{ partial "hero.html" . }}

// latest posts

Recent Articles

{{ $articlesSection := .Site.GetPage "/articles" }} {{ if $articlesSection }} {{ $articles := $articlesSection.Pages }} {{ $articles = sort $articles "Date" "desc" }}
{{ range first 6 $articles }} {{ $type := .Params.type }} {{ if not $type }}{{ $type = "article" }}{{ end }} {{ $excerpt := .Params.excerpt }} {{ if not $excerpt }} {{ $excerpt = .Summary | plainify | truncate 150 }} {{ end }} {{ $data := dict "title" .Title "type" $type "description" $excerpt "date" .Date "url" .RelPermalink "image" .Params.image "featured" .Params.featured "context" "home" }} {{ partial "post-card.html" $data }} {{ end }}
{{ end }}
View All Articles
{{ end }}