jungvonmatt / wekit

A Jamstack kit for Contentful, Hugo and Netlify.
https://www.wekit.dev
MIT License
14 stars 4 forks source link

Use full xhtml schema as required by Google #62

Closed psolbach closed 1 year ago

psolbach commented 1 year ago

While our sitemap validates without issues in most XML validators, the Google Search Console correctly reports an esoteric error with the namespacing (as rendered by Hugo).

Roughly: Our xmlns namespace requires all non-standard elements (like xhtml:link) to be declared in a schema instance namespace. Detailed explanation here. Even Google themselves do not declare namespace correctly in a tutorial.

This PR adds the required namespace information plus a noindex-nofollow fix from one of our projects.

psolbach commented 1 year ago

@peterschewe Removed the blocklist part. Otherwise, LGTY?

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication