Render latests posts content on index template

pull/1/head
Nikita Tokarchuk 3 years ago
parent 58c55e4659
commit d6905b0d15
Signed by: mainnika
GPG Key ID: A595FB7E3E56911C
  1. 11
      frontend/templates/index.go.tmpl

@ -24,5 +24,16 @@
</section>
<section id="this-is-blog" class="root-container blog-container">
<!-- render posts -->
<div class="posts-container">
{{ range .Posts }}
{{ template "post.go.tmpl" . }}
{{ end }}
</div>
</section>
</body>
</html>
Loading…
Cancel
Save