blob: 42e42ea628a2d5636689cdde0761f1f642926140 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<!doctype html>
<html lang="en">
<head>
{{template "_meta.html"}}
<title>{{.Title}}</title>
<meta name="description" content="{{.Description}}">
</head>
<body>
{{template "_navigation.html"}}
<main class="wrapper">
<h2>Posts for `{{.Tag}}`</h2>
<nav itemscope itemtype="https://schema.org/SiteNavigationElement">
<meta itemprop="name" content="Article list">
<ul class="post-list">
{{range $index, $post := .Posts}}
<li>
<time>{{.CreatedFormatted}}</time>
<a href="/{{$post.Slug}}" title="{{$post.Title}}" itemprop="url">
<h2>{{$post.Title}}</h2>
</a>
<!-- lists all tags available in this posts -->
{{if $post.Tags}}
<nav class="tags">
{{range $post.Tags}}
<a href="/tags/{{.}}.html" rel="tag">{{.}}</a>
{{end}}
</nav>
{{end}}
</li>
{{end}}
</ul>
</nav>
<!-- lists all tags available in all posts -->
{{if .Tags}}
<nav class="tags top-margin">
<strong>All tags on site:</strong>
{{range .Tags}}
<a href="/tags/{{.}}.html" rel="tag">{{.}}</a>
{{end}}
</nav>
{{end}}
</main>
{{template "_footer.html"}}
{{template "_includes.html"}}
</body>
</html>
|