to exclude about from the front-page
This commit is contained in:
parent
94f95fc114
commit
22e70c239e
5 changed files with 48 additions and 47 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue