Error: can't evaluate field AutoOrient in type interface {}
Closed this issue · 2 comments
scillidan commented
OS: Windows 10
Hugo version: hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended
Dude, I have some photos taken by phone camera and screenshot in camera/camera/
, and I write this into camera/index.md
:
{{< gallery match="camera/*" sortOrder="desc" rowHeight="120" margins="2" thumbnailResizeOptions="600x600 q90 Lanczos" showExif=false previewType="color" embedPreview=true loadJQuery=true >}}
When I use the latest version hugo-shortcode-gallery
, hugo serve
failed with:
Error: error building site: "D:\git\_BYYA-site\content.zh\docs\camera\index.md:5:1": failed to render shortcode "gallery": failed to process shortcode: "D:\git\_BYYA-site\themes\hugo-shortcode-gallery\layouts\shortcodes\gallery.html:114:35": execute of template failed: template: shortcodes/gallery.html:114:35: executing "shortcodes/gallery.html" at <images>: can't evaluate field AutoOrient in type interface {}
I accidentally deleted the hugo-shortcode-gallery
old version I used before, and I can't compare them 🤡.
mfg92 commented
Hi there,
You need a newer version of Hugo. As you can read in the README, you need Hugo 0.121.2 or newer. This version adds the AutoOrient functionality.
scillidan commented
Thanks, dude :)