aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2010-11-20 14:56:39 -0600
committerJoe Sak <joe@joesak.com>2010-11-20 14:56:39 -0600
commit7e8454d57d8dae42c587c77012466ac55060c286 (patch)
tree2aeb65ad3c777454534eb20c48e0aba210912d82 /app/views
parent44139cb7d87e6578d5b5df1b3b718164e0aad05b (diff)
downloadrefinerycms-blog-7e8454d57d8dae42c587c77012466ac55060c286.tar.gz
refinerycms-blog-7e8454d57d8dae42c587c77012466ac55060c286.tar.bz2
refinerycms-blog-7e8454d57d8dae42c587c77012466ac55060c286.zip
Had some missing markup
Diffstat (limited to 'app/views')
-rw-r--r--app/views/blog/posts/_post.html.erb42
-rw-r--r--app/views/blog/posts/show.html.erb4
2 files changed, 24 insertions, 22 deletions
diff --git a/app/views/blog/posts/_post.html.erb b/app/views/blog/posts/_post.html.erb
index 64afa16..f34091a 100644
--- a/app/views/blog/posts/_post.html.erb
+++ b/app/views/blog/posts/_post.html.erb
@@ -1,21 +1,23 @@
-<header>
- <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? %>
- <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 %>
- </aside>
- <% end %>
- </details>
-</header>
-<%= @blog_post.body.html_safe %>
+<article id="blog_post">
+ <header>
+ <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? %>
+ <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 %>
+ </aside>
+ <% end %>
+ </details>
+ </header>
+ <%= @blog_post.body.html_safe %>
-<% if BlogPost::ShareThis.enabled? %>
- <span class="st_sharethis" displayText="ShareThis"></span>
-<% end %> \ No newline at end of file
+ <% if BlogPost::ShareThis.enabled? %>
+ <span class="st_sharethis" displayText="ShareThis"></span>
+ <% end %>
+</article> \ No newline at end of file
diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb
index 778b011..4d82575 100644
--- a/app/views/blog/posts/show.html.erb
+++ b/app/views/blog/posts/show.html.erb
@@ -8,9 +8,9 @@
<% end %>
<% content_for :body_content_left do %>
- <article class="blog_post" id="show_blog_post">
+ <div id="show_blog_post">
<%= render 'post' %>
- </article>
+ </div>
<% if next_or_previous?(@blog_post) -%>
<nav id="next_prev_article">
<%= render 'nav' %>