The return statement is an important language constraint to return the value to the caller. In this tutorial, we’ll see different uses of return st...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, I notice your posts are generally teasers with links to off-site content. If you include the whole post here, people here will have a better DEV experience - and you can set the canonical url in each post to reference your site, so you don't end up with SEO woes.
Hi Ben , thanks for the suggestion
I am actually afraid whether google will penalize my website because duplicate content. If this does not happen then I love to share my whole work here and as you said I will give canonical url to my webpage
Stand up to your fears, there is nothing to be afraid of ;-) and according to this article[1], "duplicate content penalty" doesn't exist. You try to game google, which could end up to be more harmful.
[1] hobo-web.co.uk/duplicate-content-p...
Thanks for the clarification Marcus.. here is the question.i posted my blog first and then provided that content here but still I can see this post ranked above my webpage.. I really don't understand this
DEV itself probably has a higher score because of how active it is and all of the Backlinks (including a lot of activity and links on a big social network like Twitter).
dev.to likely is considered to be more relevant due to its scale. But that shouldn't be seen as a bad thing they're still going to see your article. I would focus on how to brand your posts instead.
Yes, because dev.to in general is considered more relevant than your personal blog.
That's what canonical url's are for, to let google know that the original of this content lives on another site (your blog in this case), so you're doing actually more harm to you not using the canonical url feature than if you'd use it.
Got it.. can you guys give me any example from dev.to where original post is on authors personal website but it's canonical url is pasted here along with post
Thanks
My understanding is you would set up your own site with canon meta tag moz.com/learn/seo/canonicalization
If you add this to your post's front matter here:
Then search engines should know that the "real" blog post lives on your own site.
That's cool but the question is when I post my blog here with same title and content then dev.to also creates canonical tag with same title. Then how google will distinguish which is the original content?
I'm not sure I understand what you mean?
@programmingdive Google knows the post on your blog is the original one, because you set the
canonical_url
here on dev.to (I didn't know that's possible, but good to know)As I see it, you try to game google[1] and you use dev.to to get some ranking for your blog. That's fine! dev.to encourages this and even gives you the tools (no
rel="nofollow"
and canonical_url tag). But for dev.to users, teaser posts like this can be seen as low quality (ok, I'm just speaking just for myself here) and I don't think that helps the overall quality of site (also, just my opinion).I'd say, check out all options, and how google ranks your site under different circumstances and then write an exclusive dev.to post about what you have learned :).
[1] and google doesn't like that, tries to detect that behavior.