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-header.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-header.html')
-rw-r--r-- | themes/default/layouts/partials/author-header.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/author-header.html b/themes/default/layouts/partials/author-header.html index 9babf1d..6b2fca0 100644 --- a/themes/default/layouts/partials/author-header.html +++ b/themes/default/layouts/partials/author-header.html @@ -6,14 +6,14 @@ {{- $author := partial "author-user.html" . }} {{- 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.Resize (print $dimensions " webp")).RelPermalink -}}" type="image/webp" /> {{- end -}} <img {{ if fileExists $path }} {{- with $image -}} - {{- $image = (.Content | resources.FromString (print (partial "function-paths-media.html") "/" $author "/" (path.Base .))).Resize $dimensions -}} + {{- $image = (.Content | resources.FromString (print (partial "function-paths.html" "media") "/" $author "/" (path.Base .))).Resize $dimensions -}} width="{{ $image.Width }}" height="{{ $image.Height }}" src="{{ $image.RelPermalink }}" |