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" -}}
<div class="posts">
{{ range where .Data.Pages "Type" "posts" }}
<div class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ range (where .Data.Pages "Type" "!=" "about").GroupBy "Section" }}
{{ range .Pages }}
<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">
{{- .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") -}}
</span>
@ -17,6 +18,7 @@
</div>
{{ end }}
</div>
{{- end -}}
{{- end }}
</div>
{{- end }}