aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/following-list.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/following-list.html')
-rw-r--r--themes/default/layouts/partials/following-list.html17
1 files changed, 8 insertions, 9 deletions
diff --git a/themes/default/layouts/partials/following-list.html b/themes/default/layouts/partials/following-list.html
index 4cdb69c..c04d55c 100644
--- a/themes/default/layouts/partials/following-list.html
+++ b/themes/default/layouts/partials/following-list.html
@@ -1,6 +1,7 @@
+{{- $count := 0 -}}
{{- $author := partial "function-authors-data.html" . -}}
-{{- $following := print "public/" $author.user "/following.html" -}}
-{{- $count := 0 -}}
+{{- $feeds := print "public/" $author.user "/following.html" -}}
+{{- $hash := print (truncate 4 "" (sha256 .RelPermalink)) (truncate 4 "" (sha256 .Section)) -}}
{{- with $items := $author.feeds.rss -}}
{{- $count = len $items -}}
@@ -10,19 +11,17 @@
<following-list>
<details
- id="following"
+ id="web-feeds-{{ $hash }}"
data-expand="{{- $expand -}}"
>
<summary>
- <h1>
- Following ({{ $count }})
- </h1>
+ <h1>Web Feeds ({{ $count }})</h1>
</summary>
</details>
<aside>
- {{- if and $author.feeds.rss (fileExists $following) -}}
- {{- with $following = resources.Get $following -}}
- {{- $following.Content | safeHTML -}}
+ {{- if and $author.feeds.rss (fileExists $feeds) -}}
+ {{- with $feeds = resources.Get $feeds -}}
+ {{- $feeds.Content | safeHTML -}}
{{- end -}}
{{- else -}}
<footer>