From d6905b0d15d0c8a88b67d5ce5a80cdf2b1bebadf Mon Sep 17 00:00:00 2001 From: Nikita Tokarchuk Date: Fri, 3 Dec 2021 04:17:06 +0100 Subject: [PATCH] Render latests posts content on index template --- frontend/templates/index.go.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/templates/index.go.tmpl b/frontend/templates/index.go.tmpl index f0bfb9d..ca569f2 100644 --- a/frontend/templates/index.go.tmpl +++ b/frontend/templates/index.go.tmpl @@ -24,5 +24,16 @@ +
+ + +
+{{ range .Posts }} +{{ template "post.go.tmpl" . }} +{{ end }} +
+ +
+ \ No newline at end of file