diff options
author | tdro <tdro@noreply.example.com> | 2023-01-06 03:57:02 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-01-06 04:16:39 -0500 |
commit | 036d5bd8bd2bfc2a77c43f8dbfa8e90ae8ee8b76 (patch) | |
tree | 7550133ef57e7ff86a5db9a0195266cc92dcce56 /themes/default/layouts/partials/author-card.html | |
parent | 6f40c9a8d7263f82eb97009897502588f7236ce2 (diff) | |
download | canory-036d5bd8bd2bfc2a77c43f8dbfa8e90ae8ee8b76.tar.gz canory-036d5bd8bd2bfc2a77c43f8dbfa8e90ae8ee8b76.tar.bz2 canory-036d5bd8bd2bfc2a77c43f8dbfa8e90ae8ee8b76.zip |
themes/default/layouts/partials/author-list: Generate once0.11.10
Let it appear on second generation
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 -}} |