diff options
Diffstat (limited to 'themes/default/layouts/partials/author-card.html')
-rw-r--r-- | themes/default/layouts/partials/author-card.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html index 243d360..6f771b7 100644 --- a/themes/default/layouts/partials/author-card.html +++ b/themes/default/layouts/partials/author-card.html @@ -22,7 +22,10 @@ {{- $height = $metadata.picture.profileHeight -}} {{- end -}} -{{- if not (fileExists (print "public/" $source)) -}} +{{- if or + (not (path.Ext .Data.picture.profile)) + (not (fileExists (print "public/" (partial "function-paths.html" "media") "/" .Data.user))) +-}} {{- $source = "/data/media/404.png" -}} {{- $sourceset = "" -}} {{- end -}} |