blob: 5954d168b3c78588c3c0e2f8db8a494be0112073 (
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
|
{{ $author := partial "author-user.html" . }}
{{ $count := 0 }}
{{ $result := false }}
{{ range .Site.Pages }}
{{ if or
(in .Content "<figure>")
(in .Content "<imgur-video>")
(in .Content "<youtube-video>")
(in .Content "<video-container>")
}}
{{ if eq .Type $author }}
{{ $result = true }}
{{ $count = add $count 1 }}
{{ if le $count 10 }}
{{ .Render "summary" }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ if not $result }}
<footer>
<code>No media found!</code>
</footer>
{{ end }}
|