diff options
author | tdro <tdro@noreply.example.com> | 2024-03-26 20:56:38 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-03-26 20:56:38 -0400 |
commit | 80484d00780b1b188470e8c7455e6067d241aa78 (patch) | |
tree | 6ed191f22408607d4c6e2aea2b40708433f2c51a /themes/default/layouts | |
parent | c3c20ef428b1df39bff5ef874214170c9d182379 (diff) | |
download | canory-80484d00780b1b188470e8c7455e6067d241aa78.tar.gz canory-80484d00780b1b188470e8c7455e6067d241aa78.tar.bz2 canory-80484d00780b1b188470e8c7455e6067d241aa78.zip |
themes/default/layouts/partials/following-list: Following -> Feeds
Add uniqueness
Diffstat (limited to 'themes/default/layouts')
-rw-r--r-- | themes/default/layouts/partials/following-list.html | 17 | ||||
-rw-r--r-- | themes/default/layouts/partials/profile.html | 4 |
2 files changed, 10 insertions, 11 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> diff --git a/themes/default/layouts/partials/profile.html b/themes/default/layouts/partials/profile.html index 560a50f..e0c339b 100644 --- a/themes/default/layouts/partials/profile.html +++ b/themes/default/layouts/partials/profile.html @@ -33,8 +33,8 @@ <span>{{- $author.epoch | markdownify -}}</span> </p> <p> - {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/user.svg")) }} - <span><b>{{ with $author.feeds.rss }}{{ len . }}{{ else }} 0 {{ end }}</b> Following</span> + {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/rss.svg")) }} + <span><b>{{ with $author.feeds.rss }}{{ len . }}{{ else }} 0 {{ end }}</b> Feeds</span> </p> </footer> </profile-box> |