summaryrefslogtreecommitdiff
path: root/themes/cranky/layouts/_default/list.html
blob: ada7939e3225a7faf06fc8537e17f899e7a45eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{{ define "title" -}}
{{ .Title | title }}
{{- end }}
{{ define "main" -}}
{{ .Content }}
<div class="post-list">
{{- range.Pages }}
<div class="post-item">

	<a href="{{ .RelPermalink }}">{{ .Title }}</a><br>
  <small class="post-summary">{{ .Summary | truncate 220 " ..." }} </small>
  <small class="post-date">
      {{- if .Param "datesinlist" }}
      <br>
      <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
        {{ .Date.Format "(2006-01-02)" }}</time>
      {{ end -}}
  </small>
	{{- if .Param "authorsinlist" }}
	{{ with .Params.authors }}
		by
		{{ delimit . ", " " and " }}
	{{end}}
	{{ end -}}
</div>
{{- end }}
</div>
{{- end }}