This is my first time asking a question in the community so I hope I am doing it right!
I am trying to create my Blogdown site and I have used all options to attempt to create an image but it keeps failing to display in the viewer. Having followed the other advice on this web page, I have read the Blogdown book to try and troubleshoot it but am having some issues.
When I type this into my RMarkdown document as suggested, the image appears in the RMarkdown document, but it does not appear in the viewer (even after using addins > serve site).
If I'm remembering correctly, I don't think you should need to write out the whole path to the image if it is in the static folder. Instead, try including only the part of the path "beyond" the static folder.
For example, I included a plot in a blog post from a saved image that was in a folder called img within static. My code for this:
@aosmith is right. Hugo assumes that all your images are either in static/ or if you are using the newer page bundles, that the image is in the folder with your content. This is why relative file paths are necessary- you were trying to use absolute file paths instead.