fix page layouts

This commit is contained in:
Huy Tran 2018-01-25 16:57:13 +07:00
parent 88d2987fc2
commit 94f95fc114
5 changed files with 15 additions and 14 deletions

View file

@ -5,16 +5,18 @@
{{ define "content" -}}
<div class="posts">
{{ range .Data.Pages -}}
<div class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
{{ .Summary }}
{{ if .Truncated }}
<div class="read-more-link">
<a href="{{ .RelPermalink }}">Read More…</a>
</div>
{{ end }}
</div>
{{ if ne .Section "about" }}
<div class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
{{ .Summary }}
{{ if .Truncated }}
<div class="read-more-link">
<a href="{{ .RelPermalink }}">Read More…</a>
</div>
{{ end }}
</div>
{{ end }}
{{- end }}
</div>
{{- end }}