blob: 510d3d26c83bec60e6a59057f45204a5356de6c3 (
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
|
{{- $count := 0 -}}
{{- $author := partial "function-authors-data.html" . -}}
{{- $feeds := print "public/" .Section "/following.html" -}}
{{- with $items := $author.feeds.rss -}}
{{- $count = len $items -}}
{{- end -}}
{{- $expand := cond (gt $count 3) "more" "less" -}}
<following-list>
<details
id="web-feeds"
data-expand="{{- $expand -}}"
>
<summary>
<h1>Web Feeds ({{ $count }})</h1>
</summary>
</details>
<aside>
{{- if and $author.feeds.rss (fileExists $feeds) -}}
{{- with $feeds = resources.Get $feeds -}}
{{- $feeds.Content | safeHTML -}}
{{- end -}}
{{- else -}}
<footer>
<code>No items found!</code>
</footer>
{{- end -}}
</aside>
</following-list>
|