alan-turing-institute / ADViCE

AI for Decarbonisation's Virtual Centre of Excellence
https://alan-turing-institute.github.io/ADViCE/
9 stars 1 forks source link

Fix image display in Knowledge Base #5

Closed f-rower closed 8 months ago

f-rower commented 8 months ago

SOLUTION (see thread below): Always create a new folder for a file Name the file _index.md Images and other media: you can create a subfolder (e.g. named "media"), where you put all your images. You can reference each image in the file as media/photoname.jpg

Possible sources of the issue: Hugo.toml file settings

Line 608:

f-rower commented 8 months ago

I made the ADViCE page public and still throws a 404 error

f-rower commented 8 months ago

just writing 000.jpg in root _index.md file worked. I will now try to replicate that one level further down

f-rower commented 8 months ago

renaming the file to _index.md and putting all the image files in the same repository as the file itself works

f-rower commented 8 months ago

SOLUTION: Always create a new folder for a file Name the file _index.md Images and other media: you can create a subfolder (e.g. named "media"), where you put all your images. You can reference each image in the file as media/photoname.jpg