-
-
Notifications
You must be signed in to change notification settings - Fork 6
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 tag to all blog posts #52
Comments
I almost forgot and had to check, but this is at implemented and ready to go whenever we merge, since these 3 commits: jgaehring/farmOS.org@80647e8...jgaehring:farmOS.org:171f9d52c6a656eeb6288949c98da8cdb7b18905 Perhaps it would be best to setup a review process in the source repository for the blog, rather than here, so the convention is observed? Or were you suggesting we just do this for all blog posts, regardless? |
Oh sorry jotted this issue down quick while we were on the monthly call and meant to follow up with more detail.
^ This is what we talked about on the call. It would be good to add I think this is a minor issue in our case, so maybe not something we need to worry about right away. The idea is (or was) that Google can punish you if the same content is available on both |
Ok, yea, I would just add a default in the farmOS.org/src/templates/blog.js Lines 32 to 35 in 1e71305
This component's "props" (aka, the function argument's properties, like const Page = ({ location, data }) => {
const canonicalUrl = data.site.siteMetadata.siteURL + location.pathname
return <div>The URL of this page is {canonicalUrl}</div>
} In our case, the farmOS.org/src/templates/blog.js Line 56 in 1e71305
So yea, pretty straightforward, just a matter of how we want to format it and set up the defaults once we're ready. |
Blog followup (after #49 is merged) that came up on the monthly call today.
The
canonical
tag is added to posts that definecanonical
in front matter, but not to other posts. We should addcanonical
to all posts to avoid potential SEO issues (eg: if trailing slash is ommitted, or http vs https).The text was updated successfully, but these errors were encountered: