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

Canonical URL #199

Closed
DeltaView opened this issue Sep 27, 2023 · 3 comments
Closed

Canonical URL #199

DeltaView opened this issue Sep 27, 2023 · 3 comments

Comments

@DeltaView
Copy link

Apparantly, the theme fails to add Canonical URL in the head section. Is it intentional?

Could you please add at least an optional setting to set canonical URL?

@DeltaView
Copy link
Author

It looks like inserting follwoing code in layouts/partials/head.html fixes this:

<link rel="canonical" href="{{ .Permalink }}" />

@nanxiaobei
Copy link
Owner

Added in 6.22.0.

@DeltaView
Copy link
Author

Thanks for implementing :)

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

No branches or pull requests

2 participants