halogenica / beautifulhugo

Theme for the Hugo static website generator
Other
1.14k stars 602 forks source link

head Error #508

Open StefanFahl opened 3 months ago

StefanFahl commented 3 months ago

Hello everyone,

thanks for the great topic! I have installed it and checked my site with https://validator.w3.org for errors. I get this message, among others:

Error: Element [head](https://html.spec.whatwg.org/multipage/#the-head-element) is missing a required instance of child element title.

From line 70, column 3; to line 70, column 9

↩↩↩  ↩↩↩  </head>↩  <bo

I also get problems with the layout when I use

[Params]
  selfHosted = true

although the CSS is there locally.

Can anyone tell me how I can solve these problems?

hydr0nium commented 3 months ago

@StefanFahl Can explain in more detail what you are doing. I just checked my website running caddy+hugo+beautifulhugo theme with https://validator.w3.org/and I don't get that error. I got some other errors which I will look into when I have time but not the specific error you have.

Does the head error specifically cause a problem?

For the CSS issue: When you compiled your hugo did you add the -b flag? See here for -b. If not try it with that. If you still have problems please describe them in more detail so I can figure out how to fix that issue