-
Notifications
You must be signed in to change notification settings - Fork 309
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 rel=canonical to Tumblr #288
Comments
I cannot figure out how to get this to show up properly in Tumblr themes. I've set a "Content source" for the FOIA and FEC posts in Tumblr, for the
And then I copy and adapt this to the top of the page:
But nothing shows up. And if I remove the |
Finally got this working!
It's mildly hacky, but it achieves what we want:
The home page points to the new home page, a Tumblr post with no analogue on the Jekyll blog doesn't point anywhere, and a Tumblr post with an analogue on the Jekyll blog points to its analogue. This was surprisingly annoying, as there are some subtleties about when and how Tumblr tags work that took some experimenting. Now I need to go back and mark the "source" for each Tumblr post that has an analogue. I'll do that before closing this ticket. |
Done! I've updated every Tumblr post with a source link to its Jekyll analogue. Only the "We're moving our blog!" post doesn't have one. Here's the current state of Google when searching for "18f blog": Hopefully it won't be too long until that changes! |
You made it! |
We need to add
rel=canonical
to our Tumblr blog. I did this in #287 for our staging site. However, I think it will require drudge work in Tumblr, and manual pasting of our blog URLs. This is because there's not a clean one-to-one mapping of URLs.In other words, our Tumblr URL is
http://18fblog.tumblr.com/post/96977653581/the-encasement-strategy-on-legacy-systems-and-the
and our live URL ishttps://18f.gsa.gov/2014/09/08/the-encasement-strategy-on-legacy-systems-and-the/
. You can't just switch the domain.Since the live URLs are constructed from a Tumblr import (and they share slugs), it might be possible to have Tumblr automatically assemble the URLs from its knowledge of the post's slug and publication date. We'd have to research that. Otherwise, this is a matter of someone spending some time in Tumblr clicking through and copy/pasting and saving posts, one by one.
The text was updated successfully, but these errors were encountered: