I’m currently playing with Hugo with a view to deploying it on my own server - no GitHub integration etc. I’m getting along fine with it but I’m struggling with images. A basic concept, I know, but there’s too much competing information and the docs certainly aren’t helping.
In short, I want to use images in posts. To start, I just want plain, basic images. I’ve read that images shouldn’t go in the static folder. Thats fine. Theres no info on where to upload them to. Looking around they seem to be placed directly into the already generated Hugo site that’s been deployed. Thats not ideal. I’m currently cleaning out my site as I’m testing and having to re upload images isn’t great. I’ve tried using the “figure” shortcode, and placing the image in the posts folder that’s created when I create a new post, referencing it by its name (with no absolute path), but that doesn’t copy the image across.
I guess what I’m trying to ask is:
- When uploading photos to a private Hugo server, where should the images go.
- Is there any way to set Hugo up so that images in the content folder can be referenced and copied over to the created site?
- Why isn’t the image processing shortcode included when installing Hugo?
Hope that all makes sense. Its a basic Hugo build so there’s no customised code etc, so I’ve not created a repo to show the code.