viseztrance / rails-sitemap

A simple ruby on rails sitemap generator
MIT License
110 stars 24 forks source link

How to include alternate content in sitemap? #16

Open skmvasu opened 10 years ago

skmvasu commented 10 years ago

I'm running a story telling app for kids (mangoreader.com). We've content in many languages and as a part of our International SEO we need to be able to include alternate links in our sitemaps. How do you generate this using this gem? I searched the docs but couldn't find any information on this.

More info on Sitemaps: rel="alternate"

https://support.google.com/webmasters/answer/2620865?hl=en&ref_topic=2370587

viseztrance commented 10 years ago

I'm afraid this is not possible right now. However, using link rel canonical (https://support.google.com/webmasters/answer/139394?hl=en) in your pages may provide the same effect.