hugo-material-docs icon indicating copy to clipboard operation
hugo-material-docs copied to clipboard

No CSS styles rendering when run in server

Open jamiedarcher opened this issue 7 years ago • 4 comments

Hi I'm new to Hugo and this theme so forgive me if this is a known issue:

I get no CSS loading when attempting run the server. Building the theme and changing the URLs to relative while commenting out the baseurl option allows me to see the public folder with CSS styles rendered using MAMP server in my Sites directory - though it does not publish all the content only the index.md (I copied the content files from the exampleSite folder)

Just to check I wasn't doing things wrong I tried the default hugo theme on a new site and it shows up in the server fine with styles rendered.

I'm running Hugo Static Site Generator v0.32.2 darwin/amd64 BuildDate: 2018-01-08T13:05:55+02:00

jamiedarcher avatar Jan 09 '18 14:01 jamiedarcher

I ran into similar issues - but I think this is a case where hugo has changed and the theme hasn't adapted yet.

Downgrading fixed me

$ wget https://github.com/gohugoio/hugo/releases/download/v0.20.7/hugo_0.20.7_Linux-64bit.deb
$ sudo dpkg -i hugo_0.20.7_Linux-64bit.deb 

Using the old version of hugo makes it work. I haven't yet done the crawl forward between versions to figure out when exactly this broke. The reason I picked such an old version is that there was a commit in this repo indicating a change for 0.20 -- so I figured it had worked back then.

andrewlow avatar Jan 11 '18 18:01 andrewlow

FWIW -- $ wget https://github.com/gohugoio/hugo/releases/download/v0.31.1/hugo_0.31.1_Linux-32bit.deb also seems to work fine.

andrewlow avatar Jan 11 '18 18:01 andrewlow

I opened an issue against Hugo https://github.com/gohugoio/hugo/issues/4259 -- which they closed saying this was an issue with the template (this repo).

https://discourse.gohugo.io/t/v-0-32-2-fails-to-generate-content-where-v-0-31-1-works/9849 seems possibly related.

andrewlow avatar Jan 12 '18 16:01 andrewlow

Okay well for now I've switched to Gatsby as I'm learning JS and React at the moment but I'll keep an eye on this as I want to be able to use both site generators for documentation projects.

jamiedarcher avatar Jan 13 '18 13:01 jamiedarcher