Could anyone clarify this for me? If I use
blogdown::build_site()
.Rmd
blogdown::serve_site()
serve_site()
serve_site()
hugo_build()
hugo_build()
.Rmd
Per documentation on blogdown::build_site()
and serve_site()
:
build_site()
and hugo_build()
do not build draft or future posts;
serve_site()
does.
Let me illustrate the differences with a table:
build draft? build Rmd? build which Rmd?
----------------------------------------------------------------
build_site() NO YES ALL
serve_site() YES YES SINGLE (*)
hugo_build() NO NO NONE
(*) Only build the modified Rmd.
If the combination you want is (1) do not build draft, and (2) build only the modified Rmd, there is not a single function to do this, but you can take two steps:
blogdown::build_site(local = TRUE, run_hugo = FALSE)
blogdown::hugo_build()