lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
648 stars 355 forks source link

Character Encoding set after title. #477

Closed edent closed 3 months ago

edent commented 9 months ago

Describe the bug The character encoding is declared after the title. The charset must be set in the first 1,024 bytes. On a document with a long title, the charset may not be read correctly.

See https://www.w3.org/International/questions/qa-html-encoding-declarations.en

To Reproduce Steps to reproduce the behavior:

  1. Create a document in, say, Chinese.
  2. Add a very long title
  3. Some browsers will show document encoding errors.

Expected behavior Template conforms to spec.

Additional context Some of the elements in <head> are self-closing. I'll remove the excess / - that will stop validators from complaining.