aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-26 17:01:58 -0500
committertdro <tdro@noreply.example.com>2022-12-27 21:05:14 -0500
commit773db7d222adcf5c4e47bf06dd071417831bfc60 (patch)
tree4d213223e0c0ede3b3b787daa04cf26e27eb7f04 /themes/default/layouts/partials
parentd27b1096ac6f3f9d5880ecbd97097bfceecefa13 (diff)
downloadcanory-773db7d222adcf5c4e47bf06dd071417831bfc60.tar.gz
canory-773db7d222adcf5c4e47bf06dd071417831bfc60.tar.bz2
canory-773db7d222adcf5c4e47bf06dd071417831bfc60.zip
themes/default/layouts/_default/section.following: Select distinct
Bring back up the stack
Diffstat (limited to 'themes/default/layouts/partials')
-rw-r--r--themes/default/layouts/partials/author-picture.html5
-rw-r--r--themes/default/layouts/partials/function-generate-feeds.html3
2 files changed, 5 insertions, 3 deletions
diff --git a/themes/default/layouts/partials/author-picture.html b/themes/default/layouts/partials/author-picture.html
index 05d5cf1..becb40a 100644
--- a/themes/default/layouts/partials/author-picture.html
+++ b/themes/default/layouts/partials/author-picture.html
@@ -11,7 +11,10 @@
{{- $alternate = $.Params.feed.name -}}
{{- $width = "64" -}}
{{- $height = "64" -}}
- {{- $source = $.Params.feed.favicon -}}
+ {{- $source = print "/" (partial "function-paths.html" "media") "/favicon." ($.Params.feed.source | anchorize) ".png" -}}
+ {{- if not (fileExists (print "public/" $source)) -}}
+ {{- $source = $.Params.feed.favicon -}}
+ {{- end -}}
{{- $sourceset = "" -}}
{{- else -}}
{{- $source = print "/" (partial "function-paths.html" "media") "/" $author.user "/" $author.user "-profile" (path.Ext $author.picture.profile) -}}
diff --git a/themes/default/layouts/partials/function-generate-feeds.html b/themes/default/layouts/partials/function-generate-feeds.html
index 4427f44..0bbaf46 100644
--- a/themes/default/layouts/partials/function-generate-feeds.html
+++ b/themes/default/layouts/partials/function-generate-feeds.html
@@ -193,13 +193,12 @@
{{- with .FeedImageLink -}}
{{- $favicon = . -}}
- {{- $domain = $name | humanize | urlize -}}
{{- end -}}
{{- $imageSource := partial "function-fetch-favicons.html"
(dict
"Source" $favicon
- "Infix" $domain
+ "Infix" (.FeedSourceLink | anchorize)
)
-}}