Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hugo theme not rendering when built

Tags:

hugo

I have a Hugo site using the hyde-hyde theme.

When I serve the site with hugo serve -D, I can view the site with the expected theme:

Hyde-hyde theme rendering

When I build the site to the public directory with command git submodule init && git submodule update && hugo version && hugo and open the site, the theme markup is missing?

Hyde-hyde theme not rendering

Does anyone know what I'm doing wrong?

Note: I added the theme as a submodule to the themes directory.

like image 709
Vinyl Warmth Avatar asked Apr 26 '26 22:04

Vinyl Warmth


1 Answers

At the beginning of config.tohml, you need to specify your real domain name, because after the assembly all files will be searched in the root of this address (replace "example.com" with the domain name)

like image 117
Дмитрий Даровских Avatar answered May 01 '26 20:05

Дмитрий Даровских



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!