From a92d1e8f5313e326dee3ee9017b35bda986c5181 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Wed, 19 Apr 2023 08:37:48 +0200
Subject: [PATCH] block posts layout alternate

---
 layouts/partials/blocks/templates/posts/alternate.html | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 layouts/partials/blocks/templates/posts/alternate.html

diff --git a/layouts/partials/blocks/templates/posts/alternate.html b/layouts/partials/blocks/templates/posts/alternate.html
new file mode 100644
index 00000000..b30b6952
--- /dev/null
+++ b/layouts/partials/blocks/templates/posts/alternate.html
@@ -0,0 +1,10 @@
+<div class="alternate">
+  {{ range $post := .posts -}}
+    {{ with site.GetPage (printf "/posts/%s" $post) }}
+      {{ partial "posts/post.html" (dict 
+        "post" .
+        "heading" "h3"
+        ) }}
+    {{ end }}
+  {{ end }}
+</div>
\ No newline at end of file
-- 
GitLab