Merge pull request #104 from nuno-silva/index

[WIP] Feature request: display index page content
This commit is contained in:
Radek Kozieł 2020-05-29 00:36:43 +02:00 committed by GitHub
commit 3ade628cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" }}