blob: ac6554830d4043738a6fc89b9c27f52cefead12f (
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
|
<article class="post">
<div class="thumb">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $myimg := resources.Get $imagename }}
{{ if $myimg }}
{{ $myimg := $myimg.Resize "512x" }}
<a class="thumbnail" href="{{ .RelPermalink }}">
<picture>
<source type="image/jpeg" srcset="{{ $myimg.RelPermalink }}">
<img class="gallery-photo" alt="{{ .Title }}" src="{{ $myimg.RelPermalink }}"/>
</picture>
</a>
{{ else }}
{{ errorf "Can not find image: %s" $imagename }}
{{ end }}
{{ end }}
</div>
<div class="post-short">
<section class="post-date">
{{ $showdate := .Date }}
{{ if .Param "eventdate" }}
{{ $showdate = .Param "eventdate" }}
{{ end }}
<p> {{ $showdate | time.Format ":date_long" }},
{{ range .Param "bands" }}
<a href="/posts/{{ lower . }}">{{ . }}</a>
{{ end }}
</p>
</section>
<header class="post-header">
<h2 class="post-title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h2>
</header>
<section class="post-excerpt">
<p>{{ .Param "summary" }}</p>
</section>
</div>
</article>
|