diff --git a/layouts/partials/sections/featured-posts.html b/layouts/partials/sections/featured-posts.html new file mode 100644 index 0000000..c5e5404 --- /dev/null +++ b/layouts/partials/sections/featured-posts.html @@ -0,0 +1,23 @@ +{{ $sectionID := replace (lower .section.name) " " "-" }} +{{ if .section.id }} + {{ $sectionID = .section.id }} +{{ end }} + +
+ {{ if not (.section.hideTitle) }} +

+ {{ .section.name }}

+ {{ else }} +

+ {{ .section.name }}

+ {{ end }} +
+
+ {{ range $post := .posts}} + {{ with site.GetPage $post }} + {{ partial "cards/recent-post.html" . }} + {{ end }} + {{ end }} +
+
+