Skip to content

Commit

Permalink
Page title includes page number for web crawlers
Browse files Browse the repository at this point in the history
  • Loading branch information
nlalonde committed Jan 14, 2014
1 parent 88d9f3a commit b9bda77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/list/list.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
1 change: 1 addition & 0 deletions config/locales/server.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}'"
Expand Down

0 comments on commit b9bda77

Please sign in to comment.