![]() It is not up to date with very last changes but all of the explanation are still true. To know more about the differences, see this chapter of the blogdown book. Basically, the main difference is the baseURL you are using: This is because when a website is to be previewed locally, links should refer to local files, whereas when it is deployed, it refers to deployed file. Building a site for local preview and for publishing are not the same. I'll close this one but feel free to reopen or open a new one if you encounter an issue with this new behavior. I invite you to read the NEWS file to look at the changes in recent blogdown - there is quite a few you may need to be aware of. These are new messages to give new advice you should follow. You are recommended to ignore more items in the 'ignoreFiles' field in config.toml: ".knit.md$", ".utf8.md$" ![]() But you can still build your site obviously. This is much faster for previewing and building the website locally is not always needed that is why it is not done by default. So now it is not built on disk unless you explicitly asked for it with the command above. Site does not need to be built to be previewed. Has anyone been able to solve this issue? My changes show up in the viewer, but are never updated in public. This command is not needed if you use a publishing service like Netlify. You can use blogdown::build_site() for that. public directory, you may need to manually generate the public folder in the terminal, assuming the working directory is the root of your website repo:
0 Comments
Leave a Reply. |