Closed cboettig closed 7 years ago
If you use Netlify or other services that support Hugo, you won't need build_site()
at all. All you need is serve_site()
and push to Github. If you want to build the site by yourself and publish the public/
folder, here are the gory details: https://bookdown.org/yihui/blogdown/local-preview.html
@yihui ah, whoops, I didn't realize build_site()
disabled the caching behavior by default:
This caching mechanism does not apply to local = FALSE, i.e., build_site(local = FALSE) will always recompile all Rmd files, because when you want to publish a site, you may need to recompile everything to make sure the site is fully regenerated.
Yay! That makes so much sense!
I'd thought if the
.html
that blogdown generates in thecontent/
dir had a more recent timestamp, but for some reason every time I runblogdown::build_site()
it looks like it's re-knitting all my.Rmd
files each time. Not sure what I've missed.Here's one of my sites that shows this problem but still builds in a few seconds so might serve as a minimal reproducible example: https://github.com/codemeta/codemeta.github.io