Closed rahulrai-in closed 8 months ago
Hey @rahulrai-in, I am sorry, but I didn't understand what do you mean by page bundles. can you explain, or give me some link to learn more about it?
Apologies @tfsomrat I should have added a link to the feature. Here it is: https://gohugo.io/content-management/page-bundles/
so you want to store all the images into a single folder right?
I want to store images of a blog post in the same folder as the blog post. For example, in the following organization (screenshot from the documentation link)
I'd like to keep the my-post blog post's images: image-1, image-2 etc. in the folder of the blog post.
I have used this style of content organization in my other blog. See this for reference. This doesn't use Page Bundle though.
you can use this image partial: https://github.com/gethugothemes/hugo-modules/blob/master/images/layouts/partials/image.html
it has every functionality for loading image from assets/static/content/remote. just read the docs to use it properly.
Or you can hire us to do it for you at https://gethugothemes.com/get-a-quote
I tried editing the partial template. However, for some reason it is not able to fetch Page reaources.
The command .Page.Resources.Get
return nil in the template.
Currently, the template requires images to be placed in the static folder or the assets folder. Can you suggest the modification necessary to enable it to use Page Bundles?
I want to store the blog post and all associated images, including the hero image in the same folder.