blob: 8b606f51954674e36f65816d4d2840bbdfe4a1e7 (
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
|
{{ define "content" }}
{{ $logos := .Resources.Match "logos/*" }}
{{ if gt (len $logos) 0 }}
<ul class="logos-list" aria-hidden="true">
{{ range $logos }}
{{ if eq .ResourceType "image" }}
{{ $image := .Fit "64x64" }}
<li>
<figure>
<img class="logo" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}">
</figure>
</li>
{{ end }}
{{ end }}
</ul>
{{ end }}
{{ with .Content}}
<div>
{{ . | markdownify }}
<hr>
</div>
{{ end }}
{{ $images := .Resources.Match "images/*" }}
{{ if gt (len $images) 0 }}
<ul class="images-list" aria-hidden="true">
{{ range $images }}
{{ if eq .ResourceType "image" }}
{{ $image := .Resize "512x" }}
<li>
<figure>
<img class="image" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}">
{{ with $image.Params.copyright }}
<figcaption class="copyright">{{ . | markdownify }}</figcaption>
{{ end }}
</figure>
</li>
{{ end }}
{{ end }}
</ul>
{{ end }}
{{ end }}
{{ define "lists" }}
{{ end }}
|