display index page content

This commit is contained in:
Nuno Silva 2019-12-13 16:20:13 +00:00
parent 2a34760541
commit 10eae069d0

View File

@ -1,4 +1,9 @@
{{ define "main" }}
{{ with .Content }}
<div class="index-content">
{{ . | markdownify }}
</div>
{{ end }}
<div class="posts">
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}