cabotia / cabotia.dev/ layouts/_default/list.htmlc127a41a5c98e8fc51bad450b54afda15e4ba6bb
466 B | 22 lines Raw
1
{{ define "main" }}
2
	<h1>{{ .Title }}</h1>
3
	{{ .Content }}
4

5
	{{ range .Pages.ByDate.Reverse }}
6
		<article>
7
			<h2>
8
				<a href="{{ .RelPermalink }}">{{ .Title }}</a>
9
			</h2>
10

11
			{{ if not .Date.IsZero }}
12
				<p class="post-meta">
13
					<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2 January 2006" }}</time>
14
				</p>
15
			{{ end }}
16

17
			{{ with .Summary }}
18
				<p>{{ . | plainify | truncate 240 }}</p>
19
			{{ end }}
20
		</article>
21
	{{ end }}
22
{{ end }}