From b9bda77abd23237066100bdb549de17257b3f42e Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 14 Jan 2014 11:16:10 -0500 Subject: [PATCH] Page title includes page number for web crawlers --- app/views/list/list.erb | 2 ++ config/locales/server.en.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/app/views/list/list.erb b/app/views/list/list.erb index d25d8a43c5f..ed7fd5253a9 100644 --- a/app/views/list/list.erb +++ b/app/views/list/list.erb @@ -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 %> diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 373e4b044f9..119e829f50e 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -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}'"