mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user