Using image and Document Data hosted on self hosted forge

Hello,
I am relatively new to web development.

My plan is to host the website files for hugo on a self-hosted forge and build it with a CI/CD pipeline.

I also want users (that don’t know how to edit the website itself) to be able to upload images and/or documents and have them automatically displayed on the website.

I am thinking about, creating a separate repo under the main hugo project for images and documents.

When someone uploads Data to it, a workflow starts, updating a CSV file that has a list of all file names in it. I would then create a shortcode that would iterate over all images and would look something like this example: Data sources

Is this a bad thing to do it like this?

It sounds like a CMS front end would be a lot easier, and there are plenty to choose from, both open source and commercial. If I were to give one a try, I’d start with Sveltia.

1 Like