diff options
author | tdro <tdro@noreply.example.com> | 2022-12-26 17:01:58 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-27 21:05:14 -0500 |
commit | 773db7d222adcf5c4e47bf06dd071417831bfc60 (patch) | |
tree | 4d213223e0c0ede3b3b787daa04cf26e27eb7f04 /themes/default/layouts/partials/author-picture.html | |
parent | d27b1096ac6f3f9d5880ecbd97097bfceecefa13 (diff) | |
download | canory-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.html | 5 |
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) -}} |