hugo-theme-hello-friend-ng icon indicating copy to clipboard operation
hugo-theme-hello-friend-ng copied to clipboard

adding SEO improvements

Open cortex3 opened this issue 1 year ago • 0 comments

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.

cortex3 avatar Dec 17 '23 23:12 cortex3