diff options
-rw-r--r-- | themes/default/layouts/partials/following-list.html | 18 |
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> |