blob: b4d364157edbb900ebb7858cee047f5cb3cbe99d (
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
|
{{ 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 class="no-photoswipe">
<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 }}
*/}}
{{ $images_directory := .Params.images_directory | default "images" }}
{{ $images_static := .Params.images_static | default "false" }}
{{ partial "gallery.html" (dict "page" . "dir" $images_directory "static" $images_static) }}
{{ partial "load-photoswipe.html" (dict "page" .) }}
{{ end }}
{{ define "lists" }}
{{ end }}
|