rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.45k stars 765 forks source link

adding SEO improvements #454

Open cortex3 opened 8 months ago

cortex3 commented 8 months ago

When running a Google Pagespeed Insight test on a site with the hugo theme 2 things are flagged by google.

  1. [aria-*] attributes are not valid or misspelled This comes from the fact that the main tag in html sets "aria-role" which is not a valid attribute. I chose to delete this attribute since tagging it with the same name has no accessibility benefits.

  2. Ensure text remains visible during webfont load This can be fixed by setting the font-display to swap.

The PR fixes both issues. This might be of value to other people trying to improve the google ranking.