blob: f2532331f88b2a4acc2dcde7e1dde49e96521219 (
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
|
{{ define "jsonLD" }}
<script type="application/ld+json">
{{ partial "blog-jsonld" . | safeJS }}
</script>
{{ end }}
{{ define "main" }}
<h1 class="text-center">Blog</h1>
{{ range .Paginator.Pages }}
<article>
<h2 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ partial "publish" . }}
{{ if and
(ne nil .Params.images)
(ne nil (index .Params.images 0))
}}
<div class="list-image">
{{ $image := index .Params.images 0 }}
<a href="{{ .Permalink }}">
<img
src="{{ $image.src | safeURL }}"
alt="{{ .Title }}"
title="{{ .Title }}"
/>
</a>
{{ if ne nil $image.attribution }}
<div class="attribution">
{{ print $image.attribution | safeHTML }}
</div>
{{ end }}
</div>
{{ end }}
{{ .Summary }}
</article>
<hr>
{{ end }}
{{ template "_internal/pagination.html" . }}
{{ end }}
|