mirror of
https://github.com/discourse/discourse.git
synced 2026-03-05 15:27:34 +08:00
In some cases, Google crawlers don't output the meta description but rather they output the first bit of text in the UI. Sometimes that is a mix of table headings, topic titles and excerpts, which don't reflect the site's mission. Adding the description to the homepage header might help. Internal ticket t/154372
6 lines
165 B
Text
6 lines
165 B
Text
<header>
|
|
<a href="<%= path "/" %>"><%=SiteSetting.title%></a>
|
|
<% if is_crawler_homepage? %>
|
|
<p><%= SiteSetting.site_description %></p>
|
|
<% end %>
|
|
</header>
|