yihui / blogdown-static

A minimal example of building Rmd files under the static/ directory of a website based on blogdown and Hugo
https://blogdown-static.yihui.name
MIT License
8 stars 13 forks source link

Rendering xaringan slides with blogdown: myslides-files directory does not get copied to public/slides/ #1

Open sjcowtan opened 4 years ago

sjcowtan commented 4 years ago

Hi YiHui

I'm trying to embed xaringan slides in my blogdown/hugo-academic blog, which I created today with current package versions. I followed the instructions here and the html file in the static/slides/myslides directory is absolutely fine, because it has all its dependencies. However, when it and its dependencies are copied to the public/slides directory during the build_site() process, the myslides-files directory is missed out, so all my lovely ggplots are missing. This is also one of the files that gets cleaned up by rmarkdown::clean_site(), so even if it was not a horrible kludge, manually copying it over isn't a good idea. Have I missed a trick here?

Susannah

yihui commented 4 years ago

Please take a look at my Github issue guide at https://yihui.org/issue/ first. Thanks!