aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts/_post.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/blog/posts/_post.html.erb')
-rw-r--r--app/views/blog/posts/_post.html.erb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/blog/posts/_post.html.erb b/app/views/blog/posts/_post.html.erb
new file mode 100644
index 0000000..64afa16
--- /dev/null
+++ b/app/views/blog/posts/_post.html.erb
@@ -0,0 +1,21 @@
+<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