aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/author-picture.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-04 19:16:15 -0400
committertdro <tdro@noreply.example.com>2022-05-04 19:16:15 -0400
commitc27e990f86f3f5c3565ba7a7eb18024a220ee363 (patch)
tree65c06c2bee88ff5dd45ebcdc6b6c6592310a8595 /themes/default/layouts/partials/author-picture.html
parentd5e971bbab049fc5afc632041b2f0066d0e56d6c (diff)
downloadcanory-c27e990f86f3f5c3565ba7a7eb18024a220ee363.tar.gz
canory-c27e990f86f3f5c3565ba7a7eb18024a220ee363.tar.bz2
canory-c27e990f86f3f5c3565ba7a7eb18024a220ee363.zip
themes/default/layouts/partials: Set dimensions images
Diffstat (limited to 'themes/default/layouts/partials/author-picture.html')
-rw-r--r--themes/default/layouts/partials/author-picture.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/author-picture.html b/themes/default/layouts/partials/author-picture.html
new file mode 100644
index 0000000..b8e5489
--- /dev/null
+++ b/themes/default/layouts/partials/author-picture.html
@@ -0,0 +1,10 @@
+{{- $file := "/profile/picture.png" -}}
+{{- $image := imageConfig (print "content/" (partial "author-media-path.html" .) $file) -}}
+
+<img
+ loading="lazy"
+ width="{{ $image.Width }}"
+ height="{{ $image.Height }}"
+ alt="{{ partial "author-name.html" . }}"
+ src="{{ .Site.BaseURL }}/{{ partial "author-media-path.html" . }}{{ $file }}"
+/>