aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts/show.html.erb
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2010-11-18 11:25:24 -0600
committerJoe Sak <joe@joesak.com>2010-11-18 11:25:24 -0600
commit178d782743347993cfd13f5d15af6d391b11dafc (patch)
tree61dd4b0ae4778eb1f38fa48d32b438140dbcc9bb /app/views/blog/posts/show.html.erb
parent56ed554f56db036a49170719161327bc640556b6 (diff)
downloadrefinerycms-blog-178d782743347993cfd13f5d15af6d391b11dafc.tar.gz
refinerycms-blog-178d782743347993cfd13f5d15af6d391b11dafc.tar.bz2
refinerycms-blog-178d782743347993cfd13f5d15af6d391b11dafc.zip
time datetime was invalid for HTML5 - sorry
details & aside added for category list blog_post class added to show view title put inside header empty title hidden on show
Diffstat (limited to 'app/views/blog/posts/show.html.erb')
-rw-r--r--app/views/blog/posts/show.html.erb20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb
index 2c0cfec..f8d4b35 100644
--- a/app/views/blog/posts/show.html.erb
+++ b/app/views/blog/posts/show.html.erb
@@ -7,23 +7,23 @@
<% end %>
<% end %>
-<% content_for :body_content_title, @blog_post.title %>
-
<% content_for :body_content_left do %>
- <article id="show_blog_post">
+ <article class="blog_post" id="show_blog_post">
<header>
- <p class='posted_at'>
- <%= t('blog.shared.posts.created_at', :when => @blog_post.published_at.strftime('%d %B %Y')) %>.
-
+ <h1><%= @blog_post.title %></h1>
+ <details>
+ <time datetime="<%= @blog_post.published_at.strftime('%Y-%m-%d') %>" class='posted_at'>
+ <%= t('blog.shared.posts.created_at', :when => @blog_post.published_at.strftime('%d %B %Y')) %>.
+ </time>
<% if (categories = @blog_post.categories).any? %>
- <span class='filed_in'>
+ <aside class='filed_in'>
<%= t('.filed_in') %>
<% categories.each_with_index do |category, index| %>
<%= link_to category.title, blog_category_url(category) -%><%= ',' if index < ((categories.length) - 1) %>
<% end %>
- </span>
+ </aside>
<% end %>
- </p>
+ </details>
</header>
<%= @blog_post.body.html_safe %>
@@ -91,5 +91,5 @@
<%= blog_archive_list %>
<% end %>
-<%= render :partial => "/shared/content_page" %>
+<%= render :partial => "/shared/content_page", :locals => { :remove_automatic_sections => true } %>
<% content_for :head, stylesheet_link_tag('refinerycms-blog') %> \ No newline at end of file