Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add canonical urls to the header #296

Merged

Conversation

javisperez
Copy link
Contributor

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.

@javisperez javisperez self-assigned this May 6, 2024
@javisperez javisperez merged commit 792effe into jozu-ai:main May 6, 2024
3 checks passed
@javisperez javisperez deleted the 295-add-canonical-urls-to-kitops-site branch May 6, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add canonical urls to kitops site
2 participants