summary.html 984 Bytes
Newer Older
1
2
{{ if ne .Type "notes" -}}
	<div class="entry-meta">
3
		<p><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
4
			<span class="number">{{- .Date.Format "2" }}</span> {{ .Date.Format "January, 2006" -}}
5
6
7
8
9
10
11
12
13
14
15
16
			</time>
		</p>
	</div>
{{- end }}
{{ if eq .Type "notes" -}}
	<div class="summary">
		{{ .Content }}
		<div class="entry-notes"><p><a href="{{ .URL }}">Canonical URL for {{ .Title }}</a>.</p></div>
	</div>
{{ else }}
	<div class="summary">
		<p>
17
		{{- .Summary }}
18
		</p>
19
		<p><a href="{{ .URL }}">Read {{ .Title }}</a>.</p>
20
	</div>
21
22
	<div class="entry-notes">
		<p>Categorised under:
23
24
25
26
27
28
29
30
31
32
			{{ range $index, $categories := .Params.categories }}
				{{- if gt $index 0 }}, {{ end -}}
				<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
			{{- end }}.
			Tagged with:
			{{ range $index, $tags := .Params.tags }}
				{{- if gt $index 0 }}, {{ end -}}
				<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
			{{- end }}.
		</p>
33
	</div>
34
{{ end }}