2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-05 15:27:34 +08:00
discourse/app/views/layouts/_noscript_header.html.erb
Penar Musaraj 2b6efa56f3
DEV: Add site description to crawler homepage view (#32845)
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
2025-05-22 08:33:59 +10:00

6 lines
165 B
Text

<header>
<a href="<%= path "/" %>"><%=SiteSetting.title%></a>
<% if is_crawler_homepage? %>
<p><%= SiteSetting.site_description %></p>
<% end %>
</header>