From cfd4c93d887f28850f17100b187b40c41a53e77b Mon Sep 17 00:00:00 2001 From: Aman Verma Date: Sat, 12 Nov 2022 14:27:52 -0600 Subject: [PATCH 1/4] Don't generate redundant . Quoting from the HTML specification[1]: A document must not contain both a meta element with an http-equiv attribute in the Encoding declaration state and a meta element with the charset attribute present. So we remove the with the http-equiv attribute from our template. [1]: https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv-content-type --- src/theme/index.hbs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/theme/index.hbs b/src/theme/index.hbs index 0321e1413f..52089745dd 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -15,7 +15,6 @@ {{> head}} - From 27a11e7b357d73c663fec268367325bf733306d9 Mon Sep 17 00:00:00 2001 From: Aman Verma Date: Sat, 12 Nov 2022 14:45:09 -0600 Subject: [PATCH 2/4] Don't generate obsolete charset attrs in - - - - + + + + + {{/if}} {{#if search_js}} - - - + + + {{/if}} - - - + + + {{#each additional_js}} From edda3d1b51711915b87f1a1b14ca590dc85248e5 Mon Sep 17 00:00:00 2001 From: Aman Verma Date: Sat, 12 Nov 2022 14:47:21 -0600 Subject: [PATCH 3/4] Fix formatting of content attr in According to the HTML specification[1], there needs to be a space after the semicolon and the URL must be unquoted. [1]: https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv-refresh --- src/theme/redirect.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/redirect.hbs b/src/theme/redirect.hbs index 9f49e6d095..574d41b31f 100644 --- a/src/theme/redirect.hbs +++ b/src/theme/redirect.hbs @@ -3,7 +3,7 @@ Redirecting... - + From db092a404e372dfd611896de2ace00d72fac1cc1 Mon Sep 17 00:00:00 2001 From: Aman Verma Date: Sat, 12 Nov 2022 14:54:28 -0600 Subject: [PATCH 4/4] State canonical URL using not . The Google SEO docs describe using the link element to specify the canonical page in a redirect. They don't mention anything about . --- src/theme/redirect.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/redirect.hbs b/src/theme/redirect.hbs index 574d41b31f..d0532a5049 100644 --- a/src/theme/redirect.hbs +++ b/src/theme/redirect.hbs @@ -4,7 +4,7 @@ Redirecting... - +

Redirecting to... {{url}}.