Improved metadata for tags. (#5067)

This commit is contained in:
Bianca Nenciu 2017-08-28 18:11:34 +01:00 committed by Sam
parent 657e5a8633
commit fa69e0dd77
2 changed files with 8 additions and 0 deletions

View File

@ -90,6 +90,10 @@
<%= auto_discovery_link_tag(:rss, { action: :category_feed }, title: t('rss_topics_in_category', category: @category.name)) %>
<%= raw crawlable_meta_data(title: @category.name, description: @category.description) %>
<% end %>
<% elsif @tag_id %>
<% content_for :head do %>
<%= raw crawlable_meta_data(title: @title, description: @description_meta) %>
<% end %>
<% else %>
<% content_for :head do %>
<%= raw crawlable_meta_data(title: SiteSetting.title, description: SiteSetting.site_description) %>

View File

@ -18,3 +18,7 @@
</div>
<% end %>
<% content_for :head do %>
<%= raw crawlable_meta_data(title: @title, description: @description_meta) %>
<% end %>