How to prevent blogdown from rerendering all posts?
I think the answer is on the page you referenced -- Section 1.7 of the blogdown book ("A recommended workflow"). It seems it is not clear enough to you, so let me rephrase it:
You should rarely need
bookdown::render_site()
. You can see that I didn't even mention this function in Section 1.7.Use
blogdown::serve_site()
, and it is the only function you need to call if your website is published on Netlify, or any servers that can run thehugo
command to build your website on the server side.If you do not use Netlify, or do not call
hugo
on the server side, but want to build the site locally and publish thepublic/
folder manually, callblogdown::hugo_build()
before you publish your website.
Since you are using Netlify, the answer is basically blogdown::serve_site()
. That is all you need. It does not re-render Rmd files that have not been changed. See the Appendix D.3.