blob: 13b8b90f7d40bfce86918338cc68279bc63f6c4c (
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
|
<article class="list__item post clearfix">
{{- if .Params.thumbnail }}
<figure class="list__thumbnail">
<a href="{{ .Permalink }}">
<img src="{{ .Params.thumbnail | relURL }}" alt="{{ .Title }}" />
</a>
</figure>
{{- end }}
<div class="list__content clearfix">
<header class="post-header">
<h2><a href="{{ .RelPermalink }}" rel="bookmark">{{ .Title }}</a></h2>
{{- if not .Date.IsZero }}
<div class="post-details">
<a rel="bookmark">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format "2006-01-02" }}</time>
</a>
{{- if ne .Date .Lastmod }}
<a rel="bookmark">
<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}">(Last Modified: {{.Lastmod.Format ( .Site.Params.dateformat | default "2006-01-02" )}})</time>
</a>
{{- end }}
</div>
{{- end }}
</header>
<div class="post-excerpt"><p>
{{ .Summary }}
{{- if .Site.Params.readmore }}
{{- if .Truncated }}
<a href="{{ .RelPermalink }}" class="more-link">Read more </a>
{{- end }}
{{- end }}
</p></div>
</div>
<footer class="post-footer">
{{ with .Params.categories }}
<span class="post-categories">
{{ range . }}
<a href="{{ "/categories/" | absURL}}{{ . | urlize }}" rel="tag">{{ . }}</a>
{{ end }}
</span>
{{ end }}
{{ with .Params.tags }}
<span class="post-tags">
{{ range . }}
<a href="{{ "/tags/" | absURL }}{{ . | urlize }}" rel="tag">{{ . }}</a>
{{ end }}
</span>
{{ end }}
</footer>
</article>
|