aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/following-list.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-08-09 18:13:41 -0400
committertdro <tdro@noreply.example.com>2022-08-09 18:13:41 -0400
commit8fff15f984b7d0b9a93c2ac4ef7b8a38230e7454 (patch)
treee6c0175046bc7401c24469de49a61a58c5245898 /themes/default/layouts/partials/following-list.html
parentb9c195cd39a477c5961eeefb5c428b01562921e0 (diff)
downloadcanory-8fff15f984b7d0b9a93c2ac4ef7b8a38230e7454.tar.gz
canory-8fff15f984b7d0b9a93c2ac4ef7b8a38230e7454.tar.bz2
canory-8fff15f984b7d0b9a93c2ac4ef7b8a38230e7454.zip
themes/default/layouts/partials/following-list: Check name and domain
For multi user feeds.
Diffstat (limited to 'themes/default/layouts/partials/following-list.html')
-rw-r--r--themes/default/layouts/partials/following-list.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/themes/default/layouts/partials/following-list.html b/themes/default/layouts/partials/following-list.html
index 7ef4f34..ac86897 100644
--- a/themes/default/layouts/partials/following-list.html
+++ b/themes/default/layouts/partials/following-list.html
@@ -1,11 +1,12 @@
+{{- $unique := slice -}}
{{- $following := slice -}}
-{{- $unique := slice -}}
{{- range (where .Site.Pages "Params.Author" (partial "author-user.html" .)) -}}
{{- if .Params.feed -}}
{{-
$following = $following | append (dict
- "Domain" .Params.feed.domain
+ "Name" .Params.feed.name
+ "Domain" .Params.feed.domain
)
-}}
{{-
@@ -26,8 +27,7 @@
{{- $name := .Name -}}
{{- $favicon := .Domain -}}
{{- range $unique := uniq $unique -}}
- {{- if (eq $unique.Domain $favicon) -}}
- {{- $name = $unique.Name -}}
+ {{- if and (eq $unique.Name $name) (eq $unique.Domain $favicon) -}}
{{- $favicon = $unique.Favicon -}}
{{- end -}}
{{- end -}}
@@ -37,12 +37,12 @@
<micro-summary>
<micro-thumbnail>
<figure>
- <a title="{{ $name }}" href="http://{{ $name }}">
+ <a title="{{ $author.Name }}" href="http://{{ $author.Name }}">
<picture>
<img
width="64"
height="64"
- alt="{{ $name }}"
+ alt="{{ $author.Name }}"
src="{{ $favicon }}"
/>
</picture>
@@ -50,10 +50,10 @@
</figure>
</micro-thumbnail>
<micro-header>
- <h2><b>{{ $name }}</b></h2>
- <h3><a title="{{ $name }}" href="http://{{ .Domain }}">@{{ .Domain }}</a></h3>
+ <h2><b>{{ $author.Name }}</b></h2>
+ <h3><a title="{{ $author.Name }}" href="http://{{ $author.Domain }}">@{{ $author.Domain }}</a></h3>
</micro-header>
- <a title="Follow {{ $name }}" href="http://{{ .Domain }}">
+ <a title="Follow {{ $author.Name }}" href="http://{{ $author.Domain }}">
{{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/rss.svg")) }}
<span>Follow</span>
</a>