You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your website contains Rmd files, you must use blogdown::build_site() to build the site. You can see from its documentation that build_site() = run the hugo command + post-process HTML files to resolve image paths that were rendered from Rmd.
Even if your website does not contain Rmd files, it is not harmful to use build_site(). So I wonder why you prefer running the hugo command by yourself.
In practice, blogdown::serve_site() is pretty much all you need to do (perhaps after setting options(servr.daemon = TRUE)).
Hi,
My images break when running hugo from the commandline, because the html-file in the contents directory is used without alterations:
<img src="#####../content/post/R_files/figure-html/pressure-1.png" width="672" />
Using blogdown::build command the image is correct:
<p><img src="figures/pressure-1.png" width="672" /></p>
It would be practical if the hugo command could be used when non-R pages are written or updated.
The text was updated successfully, but these errors were encountered: