29 lines
No EOL
776 B
HTML
29 lines
No EOL
776 B
HTML
{{ define "header" -}}
|
|
{{ partial "header.html" . }}
|
|
{{- end }}
|
|
|
|
{{ define "content" -}}
|
|
<div class="posts">
|
|
{{ range where .Data.Pages "Type" "posts" }}
|
|
<div class="post">
|
|
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
|
<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">
|
|
<a href="{{ .RelPermalink }}">Read More…</a>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{- end }}
|
|
</div>
|
|
{{- end }}
|
|
|
|
{{ define "footer" -}}
|
|
{{- end }} |