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.
On Sunday, June 17, 2012 3:31:40 PM UTC-4, amman....@gmail.com wrote:
> 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.
By the way, wouldn't that essentially make Tumblr a mirror for an externally hosted blog? I don't think that in general, many web services are a fan of hosting content that exists elsewhere…
Thanks for your reply, Sean - so are you saying that it's not possible to add your own dynamically-generated meta tags to your tumblr pages if you have a customized theme?
On Monday, June 18, 2012 5:47:22 PM UTC-4, Sean Zhu wrote:
> That doesn't look possible to me. :c
> By the way, wouldn't that essentially make Tumblr a mirror for an > externally hosted blog? I don't think that in general, many web services > are a fan of hosting content that exists elsewhere…
Basically, Tumblr doesn't allow you to run your own server-side scripts. There are quite a good few reasons why web services like Tumblr would make this decision.
Ok, so then the question becomes, can you insert your own meta tags manually in each post? Sorry if that's a dumb question - I don't have experience creating customized themes but will be working with a vendor to get that in place if possible.
On Tuesday, June 19, 2012 1:17:03 PM UTC-4, Sean Zhu wrote:
> Basically, Tumblr doesn't allow you to run your own server-side scripts. > There are quite a good few reasons why web services like Tumblr would make > this decision.
I meant to say "HTML element", rather than "meta tag" - is it possible to insert my own HTML element manually in the form of this in the head section in a customized tumblr theme for each post individually:
On Wednesday, June 20, 2012 7:42:48 AM UTC-4, amman....@gmail.com wrote:
> Ok, so then the question becomes, can you insert your own meta tags > manually in each post? Sorry if that's a dumb question - I don't have > experience creating customized themes but will be working with a vendor to > get that in place if possible.
> On Tuesday, June 19, 2012 1:17:03 PM UTC-4, Sean Zhu wrote:
>> Basically, Tumblr doesn't allow you to run your own server-side scripts. >> There are quite a good few reasons why web services like Tumblr would make >> this decision.
I'm going to say the answer is "sort of" but "No", not really they way you
want.
First, you should know that the "slugs" that come after posts on Tumblr are
*not* unique. The only uniquely identifying feature of the Tumblr post is
the Post ID.
Then the numbers (123456789) are the Post ID, and the other part
("this-is-called-a-post-slug") is the "Slug". The slug is *not* a unique
identifier on Tumblr. It *could* be unique if Title and Content of every
one of your posts is unique, up to however many characters Tumblr will
include in the "slug"
To my knowledge, there is no Theme Variable in the Tumblr Theme engine to
extract the post "slug". You can however get the Post ID. So you could
make a link with the *Post ID* like this on Permalink pages:
On Wed, Jun 20, 2012 at 6:48 AM, <amman.badl...@gmail.com> wrote:
> I meant to say "HTML element", rather than "meta tag" - is it possible to
> insert my own HTML element manually in the form of this in the head section
> in a customized tumblr theme for each post individually:
> On Wednesday, June 20, 2012 7:42:48 AM UTC-4, amman....@gmail.com wrote:
>> Ok, so then the question becomes, can you insert your own meta tags
>> manually in each post? Sorry if that's a dumb question - I don't have
>> experience creating customized themes but will be working with a vendor to
>> get that in place if possible.
>> On Tuesday, June 19, 2012 1:17:03 PM UTC-4, Sean Zhu wrote:
>>> Basically, Tumblr doesn't allow you to run your own server-side scripts.
>>> There are quite a good few reasons why web services like Tumblr would make
>>> this decision.
> To post to this group, send email to tumblr-themes@googlegroups.com.
> To unsubscribe from this group, send email to
> tumblr-themes+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/tumblr-themes?hl=en.
I think this might actually work, because for our tumblr pages, (1) we do actually have unique "slugs" for each post currently and (2) when you go to any of our URLs with only PostID, they automatically 301 redirect (permanently) to the URL with both PostID and Slug (for both shortened versions, with or without the trailing slash).
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:
On Wednesday, June 20, 2012 3:48:33 PM UTC-4, felix bonkoski wrote:
> I'm going to say the answer is "sort of" but "No", not really they way you > want.
> First, you should know that the "slugs" that come after posts on Tumblr > are *not* unique. The only uniquely identifying feature of the Tumblr post > is the Post ID.
> Then the numbers (123456789) are the Post ID, and the other part > ("this-is-called-a-post-slug") is the "Slug". The slug is *not* a unique > identifier on Tumblr. It *could* be unique if Title and Content of every > one of your posts is unique, up to however many characters Tumblr will > include in the "slug"
> To my knowledge, there is no Theme Variable in the Tumblr Theme engine to > extract the post "slug". You can however get the Post ID. So you could > make a link with the *Post ID* like this on Permalink pages:
> But as I don't think there is any way to get the "slug" in a > {ThemeVariable} I don't think you can do exactly what you want.
> There's my two cents.
> Felix
> On Wed, Jun 20, 2012 at 6:48 AM, a <amman.badl...@gmail.com>mman badlani > wrote:
>> I meant to say "HTML element", rather than "meta tag" - is it possible to >> insert my own HTML element manually in the form of this in the head section >> in a customized tumblr theme for each post individually:
>> On Wednesday, June 20, 2012 7:42:48 AM UTC-4, a <amman.badl...@gmail.com>mman >> badlani wrote:
>>> Ok, so then the question becomes, can you insert your own meta tags >>> manually in each post? Sorry if that's a dumb question - I don't have >>> experience creating customized themes but will be working with a vendor to >>> get that in place if possible.
>>> On Tuesday, June 19, 2012 1:17:03 PM UTC-4, Sean Zhu wrote:
>>>> Basically, Tumblr doesn't allow you to run your own server-side >>>> scripts. There are quite a good few reasons why web services like Tumblr >>>> would make this decision.
>> To post to this group, send email to tumblr-themes@googlegroups.com. >> To unsubscribe from this group, send email to >> tumblr-themes+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/tumblr-themes?hl=en.
In the absence of a {ThemeVariable} that extracts the "slug", I really
can't think of a *clean* way to do this.
Here's my best idea:
1. *Use the Source URL from the post.
*
2. For every post on Tumblr you create that is mirrored on *
my-other-domain.com* make sure you set the "*Content Source URL*" for
that post when creating the Tumblr post, and set that source URL to the
Canonical URL.
3. In the header of your Theme Code, do something like this:
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.
*However*, now every time you set a SourceURL on a post, it will include
this canonical link! So don't set a SourceURL if you don't want this
<link> created!
Tumblr just doesn't give you the kind of control you're looking for to
embed custom things *directly onto the HTML of the page*, but hopefully in
your situation this will work OK.
> In the absence of a {ThemeVariable} that extracts the "slug", I really > can't think of a *clean* way to do this.
> Here's my best idea:
> 1. *Use the Source URL from the post. > * > 2. For every post on Tumblr you create that is mirrored on * > my-other-domain.com* make sure you set the "*Content Source URL*" for > that post when creating the Tumblr post, and set that source URL to the > Canonical URL.
> 3. In the header of your Theme Code, do something like this:
> 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.
> *However*, now every time you set a SourceURL on a post, it will include > this canonical link! So don't set a SourceURL if you don't want this > <link> created!
> Tumblr just doesn't give you the kind of control you're looking for to > embed custom things *directly onto the HTML of the page*, but hopefully in > your situation this will work OK.