diff options
author | tdro <tdro@noreply.example.com> | 2022-07-10 00:09:15 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-07-10 00:09:15 -0400 |
commit | 56afea8037ba5476ac2338503e77d5a1fd82fb7f (patch) | |
tree | e27ee9928b6ccec3179fef8b6687ece085fa62d0 /themes/default/layouts/partials/author-picture.html | |
parent | 734ca16734e01d4b2808e8468ecf7f863a5e32c5 (diff) | |
download | canory-56afea8037ba5476ac2338503e77d5a1fd82fb7f.tar.gz canory-56afea8037ba5476ac2338503e77d5a1fd82fb7f.tar.bz2 canory-56afea8037ba5476ac2338503e77d5a1fd82fb7f.zip |
themes/default/layouts/partials/function-paths: Collect paths functions here
Diffstat (limited to 'themes/default/layouts/partials/author-picture.html')
-rw-r--r-- | themes/default/layouts/partials/author-picture.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/author-picture.html b/themes/default/layouts/partials/author-picture.html index c269efc..88d2918 100644 --- a/themes/default/layouts/partials/author-picture.html +++ b/themes/default/layouts/partials/author-picture.html @@ -8,7 +8,7 @@ {{- with .Params.feed -}} {{- else -}} {{- with $image -}} - {{- $image = .Content | resources.FromString (print (partial "function-paths-media.html") "/" $author "/" (path.Base .)) -}} + {{- $image = .Content | resources.FromString (print (partial "function-paths.html" "media") "/" $author "/" (path.Base .)) -}} <source srcset="{{- ($image.Fit (print $dimensions " webp")).RelPermalink -}}" type="image/webp" /> {{- end -}} {{ end }} @@ -23,7 +23,7 @@ {{ else }} {{ if fileExists $path }} {{- with $image -}} - {{- $image = (.Content | resources.FromString (print (partial "function-paths-media.html") "/" $author "/" (path.Base .))).Fit $dimensions -}} + {{- $image = (.Content | resources.FromString (print (partial "function-paths.html" "media") "/" $author "/" (path.Base .))).Fit $dimensions -}} width="{{ $image.Width }}" height="{{ $image.Height }}" src="{{ $image.RelPermalink }}" |