to exclude about from the front-page

This commit is contained in:
Huy Tran 2018-02-03 15:35:10 +07:00
parent 94f95fc114
commit 22e70c239e
5 changed files with 48 additions and 47 deletions

View file

@ -4,8 +4,7 @@
{{ define "content" -}}
<div class="posts">
{{ range .Data.Pages -}}
{{ if ne .Section "about" }}
{{ range where .Data.Pages "Type" "posts" }}
<div class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
@ -16,7 +15,6 @@
</div>
{{ end }}
</div>
{{ end }}
{{- end }}
</div>
{{- end }}