-
Notifications
You must be signed in to change notification settings - Fork 312
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
Proposal : Improve SEO with <link rel="alternate"> #20
Comments
Hey @sachaarbonel Thanks for your concern. I didn't get it properly what you said, can you please explain in details so we can improve our theme. Or it will be great if you make a pull request. |
ExplanationsAs I understand, when you have a multilingual blog, google can flag your content as duplicate if you don't add What I did in my forkI did something like this in {{ "<!-- multilingual SEO optimizations -->" | safeHTML }}
{{ if .IsTranslated }}
{{ range .Translations }}
<link rel="alternate" hreflang="{{ .Lang }}" href="https://gallant-kirch-993286.netlify.app{{ .Permalink }}">
{{ end }}
{{ end }} Sorry for the ugly hardcoded url but still new to gohugo and I tried everything but my baseUrl doesn't seem to work. |
I am implementing this code. Thanks for being with themefisher. |
Hi themefisher team, thank's for this great theme! It seems to me that is a good SEO practice. Also ghost have a section on this
The text was updated successfully, but these errors were encountered: