panr / hugo-theme-hello-friend

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!

Home Page:https://github.com/panr/hugo-theme-hello-friend/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Processing crashes on building a website

junkpiano opened this issue · comments

I am trying to process images by using shortcode imgproc.html, but it crashes when building my blog.

My code is

{{< imgproc "/images/sample-image.jpg" Resize "250x" left >}}

The error message says that

execute of template failed: template: shortcodes/imgproc.html:9:36: executing "shortcodes/imgproc.html" at <$original.Resize>: nil pointer evaluating resource.Resource.Resize

It seems it fails to fetch and assign the original image.

Another shortcode like image works, so the image path is correct.