In the demo bookdown files, _output.yml contains some code to put some content before and after the TOC. I've modified it as follows, but the image is not included in the book build. How can I do this so that the image gets included in the static site folder, thus allowing the image to show up in the browser?
bookdown::gitbook: css: style.css config: toc: before: | <a href="https://www.example.com/"><img src="images/example.png" width="280"></a> <li><a href="./">An example Resource</a></li> after: | <li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
I realize that what's happening is that the "|" symbol at the start of the line stops processing of the rest of the line and just includes it. However, if I remove that, won't I be working in YAML, rather than markdown? And I have no idea how to insert an image via YAML.
So either I need to figure out how to include this static image in the built book, even though it's never referenced in the markdown of the book, or I need to figure out how to use something other than HTML to insert it above the TOC. Either solution would be fine with me.
Any help greatly appreciated. Thanks in advance.