jungvonmatt / wekit

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

Include self-reference in hreflang tags #56

Closed psolbach closed 1 year ago

psolbach commented 1 year ago

In compliance with Google specification, we add an additional hreflang tag for the language currently rendered. See https://developers.google.com/search/docs/specialty/international/localized-versions?hl=de

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

psolbach commented 1 year ago

Works as aspected. Should we also add x-default?

I believe the default should be explicitly defined in Contentful or elsewhere. I'll create another ticket.