diff options
author | tdro <tdro@noreply.example.com> | 2023-03-14 15:11:23 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-03-14 15:11:23 -0400 |
commit | ef2611e3c2c07b42f4c8d32ad8cce7d5d634e822 (patch) | |
tree | 8a87daba0eb4a355f732ec7e5f3bf3e9bfe3ad7b /themes/default/layouts/partials/author-picture.html | |
parent | bde0c042a2d050a8549707f62dec57844c56a0c5 (diff) | |
download | canory-ef2611e3c2c07b42f4c8d32ad8cce7d5d634e822.tar.gz canory-ef2611e3c2c07b42f4c8d32ad8cce7d5d634e822.tar.bz2 canory-ef2611e3c2c07b42f4c8d32ad8cce7d5d634e822.zip |
themes/default/layouts/partials/function-paths: Return dict here
Diffstat (limited to 'themes/default/layouts/partials/author-picture.html')
-rw-r--r-- | themes/default/layouts/partials/author-picture.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/partials/author-picture.html b/themes/default/layouts/partials/author-picture.html index becb40a..dbbfd69 100644 --- a/themes/default/layouts/partials/author-picture.html +++ b/themes/default/layouts/partials/author-picture.html @@ -11,14 +11,14 @@ {{- $alternate = $.Params.feed.name -}} {{- $width = "64" -}} {{- $height = "64" -}} - {{- $source = print "/" (partial "function-paths.html" "media") "/favicon." ($.Params.feed.source | anchorize) ".png" -}} + {{- $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) -}} - {{- $sourceset = print "/" (partial "function-paths.html" "media") "/" $author.user "/" $author.user "-profile.webp" -}} + {{- $source = print "/" (partial "function-paths.html").media "/" $author.user "/" $author.user "-profile" (path.Ext $author.picture.profile) -}} + {{- $sourceset = print "/" (partial "function-paths.html").media "/" $author.user "/" $author.user "-profile.webp" -}} {{- with $metadata := resources.Get $metadata -}} {{- $metadata = $metadata.Content | transform.Unmarshal -}} {{- $width = $metadata.picture.profileWidth -}} |