This is my first time I'm trying to generate a static website.
Everything works fine in development mode with hugo server
command.
The styling is great, but when I'm trying to generate the final static files with hugo
command the theme seems not to be applied properly and I don't understand why.
I've tried two themes (what's in the quickstart and another one) but I get similar results with both.
These are the commands what I've entered into console in the later case:
hugo new site testsite
cd testsite
cd themes
git clone https://github.com/cowboysmall-tools/hugo-devresume-theme.git
cd ..
cp themes/hugo-devresume-theme/exampleSite/config.toml .
hugo server
# styling seems to work
hugo
# the opened public/index.html is broken
Can anyone tell me what am I doing wrong?
I've followed these tutorials:
UPDATE
after checking the errors in chrome console I can see values like this:
<link href="/dist/css/app.1cb140d8ba31d5b2f1114537dd04802a.css" rel="stylesheet">
if I delete the /
from the beginning of /dist/css/app.1cb140d8ba31d5b2f1114537dd04802a.css
the style seems to be applied correctly.
Obviously I don't want to do this every time manually. Is there any solution for this in configuration?