README.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Metatag: hreflang
  2. -----------------
  3. This module automatically adds hreflang meta tags for each locale currently
  4. enabled on the site. It also provides support for the hreflang=x-default meta
  5. tag.
  6. This is similar to the Alternative hreflang [1] module. That module
  7. automatically adds the hreflang tag to every page for every enabled locale,
  8. which may not be what a site needs. This module allows the site builder control
  9. over what tags are shown.
  10. The module also provides new tokens to output the URLs of each of the current
  11. node's translations, and assigns these as the defaults for the meta tags. As
  12. such, this module may not need additional configuration once it is enabled, but
  13. it's always worth confirming the output is as expected.
  14. This module works best when the Translation or Entity Translation modules are
  15. enabled and configured.
  16. Configuration
  17. --------------------------------------------------------------------------------
  18. 1. By default if the hreflang="x-default" meta tag matches one of the
  19. hreflang="LANGCODE" meta tags that hreflang="LANGCODE" meta tag will be
  20. removed. It is possible to change this so that the meta tag is not removed
  21. by enabling the "Allow hreflang tag that matches the x-default tag" option
  22. on the main Metatag settings page:
  23. admin/config/search/metatags/settings
  24. Credits / Contact
  25. --------------------------------------------------------------------------------
  26. Originally developed by Damien McKenna [2].
  27. References
  28. --------------------------------------------------------------------------------
  29. 1: https://www.drupal.org/project/hreflang
  30. 2: https://www.drupal.org/u/damienmckenna.