The blogdown
book suggests that local preview works using
blogdown::build_site(local=TRUE)
If I understand this correctly, this is supposed to temporarily change the config.toml
file to set the baseurl
to /
thus overwriting whatever setting you have. When I try that, however, it doesn't really work and it keeps showing the original baseurl
in the resulting public
folder.
Is there a way to create a "local" version of the resulting site that would keep the links (or most of them, anyway) correct (rather than pointing to the baseurl
and the online version, which works perfectly, BTW)?
I have seen some posts suggesting that some themes may not be suitable to do that as the authors may have not written the original code to point to relativeurls
(I know I'm being vague here, but I think it goes to that effect), but is there a way around it?
Thanks
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…