So we built our customized theme using Ruby on Rails (not sure if this is relevant for the questions), and we would like to put in canonical tags for each post that lists the same exact post on our own website's blog as the originator of that content. Since we will have the same posts on both sites, we want to avoid duplicate content issues with Google and other search engines. So my questions – is there a way we can possibly put unique canonical tags in place for each post on tubmlr? If so, how would you recommend we do that and dynamically so we don't have to put one in manually for each one? In terms of implementation we can work with our developers, but just want to first find out if it's possible with tumblr pages.
Please let me know.
Best,
Amman
<link rel="canonical" href="http://my-other-domain.com/{PostID}" />
--To view this discussion on the web visit https://groups.google.com/d/msg/tumblr-themes/-/b2ZsnSxhNEAJ.
You received this message because you are subscribed to the Google Groups "Tumblr Themes" group.
To post to this group, send email to tumblr...@googlegroups.com.
To unsubscribe from this group, send email to tumblr-theme...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tumblr-themes?hl=en.
<link rel="canonical" href="http://my-other-domain.com/blog/some-other-unique-identifier" />
To unsubscribe from this group, send email to tumblr-themes+unsubscribe@googlegroups.com.
So to be clear, the URL on my-other-domain.com does not need to match the PostID and/or Slug. So instead of the canonical being this:I'm fine with it actually being this:<link rel="canonical" href="http://my-other-domain.com/blog/some-other-unique-identifier" />
But so then the question remains whether or not I would be able to add the <link rel="canonical" href="http://my-other-domain.com/blog/some-other-unique-identifier" /> canonical tag manually to the head section of the http://my-tumblr-blog.tumblr.com/post/123456789/this-is-called-a-post-slug post page. Do you know if that's possible?Note: it's important that the <link rel="canonical" href="http://my-other-domain.com/blog/some-other-unique-identifier" /> canonical tag not be added to the head section of either http://my-tumblr-blog.tumblr.com/post/123456789/ or http://my-tumblr-blog.tumblr.com/post/123456789, since they permanently redirect to http://my-tumblr-blog.tumblr.com/post/123456789/this-is-called-a-post-slug.
Yes, It's OK to include 2 {block:Posts} in your Page! Tumblr will still parse it correctly. Wrapping the block in {block:PermalinkPage} will ensure this link is only inserted on the post Permalink pages.<head>.....{block:PermalinkPage}{block:Posts}{block:ContentSource}<link rel="canonical" href="{SourceURL}" />{/block:ContentSource}{block:Posts}{/block:PermalinkPage}.....</head>