I use the R Studio IDE to do many things, one of which is to serve local websites utilizing the blogdown package which is a fork of hugo. I write the code in R Studio and preview the site utilizing the
blogdown::serve_site() command. This is the easiest way I know of previewing static HTML sites. Utilizing hugo R Studio coerces my browser to go to the
127.0.0.1:XXXX location and my local site is previewed before my eyes.
Can I serve local sites natively with Ubuntu 18.04? How? I imagine it should be very simple. Searching online I can't find any simple way to do it though. If I simply open the static HTML files directly in my browser they showup wonky. All image links are immediately broken. Formatting of headings, hyperlinks, etc is not the same as when I serve the page locally with hugo.
EDIT - I did not really define my term 'simplicity'. There are two different approaches (so far) in the answers, one that is simplest to the end user, and one that is simple with regard to operations being performed by my computer. I like both approaches and will welcome answers utilizing any approach as I test them. Thank you.
index.htmlfile onto Chrome and this is the url
file:///C:/Users/jason/hugoweb/public/index.htmlin my address bar. All image links are immediately broken. And formatting of headings, hyperlinks, etc is not the same as when I serve the page locally with hugo. Why, I have no idea?!? I'm open to answers.