blob: 6c4f7d06f92841b282e33394465b5c4347f61cf7 (
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
|
{{ define "main" }}
<content>
{{ if .Data.Singular }}
<h3 style="margin-bottom:0">{{ i18n "filter" }} "{{ .Title }}"</h3>
<small>
<a href="{{ i18n "posts" }}">{{ i18n "remove" }}</a>
</small>
{{ end }}
<ul class="blog-posts">
{{ range .Pages }}
<li>
<span>
<i>
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
</time>
</i>
</span>
{{ if .Params.link }}
<a href="{{ .Params.link }}">{{ .Title }}</a>
{{ else }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</li>
{{ else }}
<li>
No posts yet
</li>
{{ end }}
</ul>
{{ if .Data.Singular }}
{{else}}
<div>
{{ range .Site.Taxonomies.tags }}
<a class="blog-tags" href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
{{ end }}
</div>
{{ end }}
</content>
{{ end }}
|