summaryrefslogtreecommitdiffstats
path: root/layouts/_partials/pages.html
blob: 8ebdb588cea9e375e4dbdf45727481450d3ec2d1 (plain) (blame)
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
{{- /*
Renders a table of pages.

@context {Page} . Current page.

@example: {{ partial "page-list.html" .Pages }}
*/}}

<table>
	<thead>
		<tr>
			<th>Date</th>
			<th>Title</th>
			<th><a href="{{ partial "taxonomy-url.html" (dict "taxonomy" "tags" "site" .Site) }}">Tags</a></th>
		</tr>
	</thead>
	<tbody>
		{{- range .Pages }}
			<tr>
				<td>{{ partial "date.html" .Date -}}</td>
				<td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
				<td>{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}</td>
			</tr>
		{{- end }}
	</tbody>
</table>