aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/author-picture.html
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/author-picture.html
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/author-picture.html')
-rw-r--r--themes/default/layouts/partials/author-picture.html5
1 files changed, 4 insertions, 1 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) -}}