I am creating a web using RStudio and HUGO, by means of the Blogdown
package.
When serving the site locally in RStudio, it seems to be rendered properly. All the files are created within the folder /public
.
However, when I open the file index.html
from the /public
folder, I get this appearance.
I am employing the theme Mainroad
with this base URL:
baseurl = "/"
Any idea why when opening the HTML file it is not rendered properly?
Thanks to the HUGO forum, I post the answer that worked for me, just in case somebody get here.
It is pretty simple, just by adding two lines at the top of the config.toml
file:
relativeURLs = true
uglyURLs = true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With