diff options
author | Shaun <shaun@enmasse.com> | 2011-11-11 12:09:05 -0800 |
---|---|---|
committer | Shaun <shaun@enmasse.com> | 2011-11-11 12:09:05 -0800 |
commit | d90c831cca8e4af5259cf48b009ce90ec1a4f6ff (patch) | |
tree | 6855c786907e4a0565d6325c6a23dfbe67b1c781 /app | |
parent | 1d5dfb1fdddc40458edb1426b07f0153fe2022f3 (diff) | |
download | refinerycms-blog-d90c831cca8e4af5259cf48b009ce90ec1a4f6ff.tar.gz refinerycms-blog-d90c831cca8e4af5259cf48b009ce90ec1a4f6ff.tar.bz2 refinerycms-blog-d90c831cca8e4af5259cf48b009ce90ec1a4f6ff.zip |
ensure page titles on date-based and tag-based archive views are unique
Diffstat (limited to 'app')
-rw-r--r-- | app/views/refinery/blog/posts/archive.html.erb | 2 | ||||
-rw-r--r-- | app/views/refinery/blog/posts/tagged.html.erb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/refinery/blog/posts/archive.html.erb b/app/views/refinery/blog/posts/archive.html.erb index c7a2c92..01e3748 100644 --- a/app/views/refinery/blog/posts/archive.html.erb +++ b/app/views/refinery/blog/posts/archive.html.erb @@ -1,3 +1,5 @@ +<% content_for :title, "#{t('.blog_archive_for', :date => @archive_date.strftime('%B %Y'))}" %> + <% content_for :body_content_left do %> <h1><%= t('.blog_archive_for', :date => @archive_date.strftime('%B %Y')) %></h1> <% if @blog_posts.any? %> diff --git a/app/views/refinery/blog/posts/tagged.html.erb b/app/views/refinery/blog/posts/tagged.html.erb index 477d2b7..468401a 100644 --- a/app/views/refinery/blog/posts/tagged.html.erb +++ b/app/views/refinery/blog/posts/tagged.html.erb @@ -1,3 +1,5 @@ +<% content_for :title, "#{t('.posts_tagged')} '#{@tag_name.titleize}'" %> + <% content_for :body_content_title, "#{t('.posts_tagged')} “#{@tag_name.titleize}”".html_safe -%> <% content_for :body_content_left do %> |