jozu-ai / kitops

Tools for easing the handoff between AI/ML and App/SRE teams.
https://KitOps.ml
Apache License 2.0
214 stars 22 forks source link

Add canonical urls to the header #296

Closed javisperez closed 1 month ago

javisperez commented 1 month ago

This PR fixes #295 .

It adds a link canonical meta tag to the head of each generated url so crawlers can know what's the original content source when referred from other sites (or even internally).

Sample produced tag; the same generates for each page:

<link rel="canonical" href="https://kitops.ml/docs/overview.html">

This should also fix 301's warnings in the search console caused by www.kitops.ml going to kitops.ml becase kitops.ml will now have a canonical that defines it as the source of truth.