22 lines
573 B
HTML
22 lines
573 B
HTML
|
{{- define "main" -}}
|
||
|
|
||
|
<h1>{{ .Title }}</h1>
|
||
|
|
||
|
{{ $pages := .Pages }}
|
||
|
{{ range $pages.ByPublishDate.Reverse }}
|
||
|
<p>
|
||
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||
|
{{ $customDateFormat := "January 2, 2006" }}
|
||
|
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
|
||
|
<br>
|
||
|
<small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
|
||
|
{{ partial "tags" . }}
|
||
|
{{ if eq .Site.Params.showPostSummary true }}
|
||
|
<br>
|
||
|
{{ .Summary }}
|
||
|
{{ end }}
|
||
|
</p>
|
||
|
{{ end }}
|
||
|
|
||
|
{{- end -}}
|