This commit is contained in:
Huy Tran 2018-03-30 10:49:07 +11:00
parent a0df983ae7
commit ad5f17e77a
6 changed files with 33 additions and 8 deletions

View file

@ -7,7 +7,13 @@
{{ 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>
<span class="post-date">
{{- if isset .Site.Params "dateformat" -}}
{{ .Date.Format .Site.Params.dateformat }}
{{- else -}}
{{ .Date.Format "Jan 02 2006" }}
{{- end -}}
</span>
{{ .Summary }}
{{ if .Truncated }}
<div class="read-more-link">