I’ve got an image in /resources/images/banner.jpg
and I’ve got a call in my template {{ $banner := resources.Get "images/banner.jpg" }}
but when it renders I get nil pointer evaluating resource.Resource.Permalink
. What’s going on?
Put them in /assets.
Ah, that works. That’s not very well documented. So /assets
are where global resources live, and /resources
aren’t?
Yes. Hugo does store the built resources below /resources
– that you may consider a temporary cache or not – in some situations it may makes sense commit that folder to source control, too.