Commits back the index.html in layouts from the private to public branch

This commit is contained in:
Huy Tran 2018-04-08 21:41:56 +10:00
parent da0fdbc682
commit 55d7de3e96

View file

@ -4,9 +4,10 @@
{{ define "content" -}} {{ define "content" -}}
<div class="posts"> <div class="posts">
{{ range where .Data.Pages "Type" "posts" }} {{ range (where .Data.Pages "Type" "!=" "about").GroupBy "Section" }}
<div class="post"> {{ range .Pages }}
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1> <div class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }}<sup><i class="fas fa-pen-square fa-xs"></i></sup>{{ end }}</h1>
<span class="post-date"> <span class="post-date">
{{- .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") -}} {{- .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") -}}
</span> </span>
@ -17,6 +18,7 @@
</div> </div>
{{ end }} {{ end }}
</div> </div>
{{- end -}}
{{- end }} {{- end }}
</div> </div>
{{- end }} {{- end }}