I’m wondering if there’s a way to exclude some files when bulding the site for upload by running
$ hugo --destination "/tmp/hugo_public" --cleanDestinationDir
In some page bundles, I have some data-files (JSON or CSV) that are needed to create the page, but shouldn’t be on the server.
Right now, I’m excluding them using a rsync-flag while uploading.
Yes, there are - located in the same folder as the “index.md” - while the JSON/CSV-files are always located in the “_data”-subfolder within the bundle.
Are the other files in the bundle referenced in Markdown? For example, if the other files in the bundle are images, do you reference every image in Markdown?