This gem provides a tag_helper to automatically generate googles
<link rel="alternate" hreflang="es" href="http://es.example.com/" />
tag.
For more Information check out the google Webmaster-Tools
- Rails 3.x
- I18n
- URL based languages
Add this line to your application's Gemfile:
gem 'google_href_lang'
And then execute:
$ bundle
Or install it yourself as:
$ gem install google_href_lang
Include <%= include_hreflang_tags > in the header section of your erb template.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request