I am new to hugo and blogdown and am creating an academic website using hugo-academic theme.
Everything works great. Except the social sharing buttons. When I run blogdown::build_site(), the social sharing buttons on blog posts don't seem to have full urls and therefore will fail. see. e.g. https://nkaza.github.io/post/urban-morphology-landscape-metrics/
The url variable is "/post/..." rather than "baseurl/post/...".
If, on the other hand, I run hugo in the terminal, I get the right urls for the sharing buttons for the same config file. However, the Rmarkdown posts disappear. This seems like a strange behaviour.
Can someone please point me in the right direction to fix the urls?
If interested, the website sources are at https://github.com/nkaza/website and the published version is at https://nkaza.github.io