Page title includes page number for web crawlers

This commit is contained in:
Neil Lalonde 2014-01-14 11:16:10 -05:00
parent 88d9f3a786
commit b9bda77abd
2 changed files with 3 additions and 0 deletions

View File

@ -21,4 +21,6 @@
<%= auto_discovery_link_tag(@category, {action: :category_feed, format: :rss}, title: t('rss_topics_in_category', category: @category.name), type: 'application/rss+xml') %>
<% end %>
<% content_for :title do %><%=@category.name%> <%=t('topics')%><% end %>
<% elsif params[:page] %>
<% content_for :title do %><%=t 'page_num', num: params[:page].to_i + 1 %><% end %>
<% end %>

View File

@ -73,6 +73,7 @@ en:
invalid_characters: "contains invalid characters"
is_invalid: "is invalid; try to be a little more descriptive"
next_page: "next page →"
page_num: "Page %{num}"
by: "By"
topics_in_category: "Topics in the '%{category}' category"
rss_posts_in_topic: "RSS feed of '%{topic}'"