Workaround solution to help Yandex crawler index discource.

Yandex search engine doesn't index noscript tag content. See also
http://meta.discourse.org/t/noscript-tag-and-some-search-engines/8078
This commit is contained in:
Anton Batenev
2013-07-04 22:08:23 +04:00
parent 28c168fc2b
commit af36d32f7f
5 changed files with 30 additions and 0 deletions

View File

@@ -78,6 +78,10 @@ module ApplicationHelper
end
end
# Add workaround tag for Yandex crawler
# (see http://help.yandex.ru/webmaster/?id=1125296)
result << tag('meta', name: "fragment", content: "!") if SiteSetting.yandex_workaround
result
end