summaryrefslogtreecommitdiff
path: root/app/views/layouts/blog/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/blog/show.html.haml')
-rw-r--r--app/views/layouts/blog/show.html.haml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/layouts/blog/show.html.haml b/app/views/layouts/blog/show.html.haml
new file mode 100644
index 0000000..b5bc983
--- /dev/null
+++ b/app/views/layouts/blog/show.html.haml
@@ -0,0 +1,20 @@
+%article.blog_full
+
+ %h1.first= @page.title
+
+ .byline
+ - if @page.props.author
+ %span.author>= I18n.t('posted_by') + ' ' + @page.props.author
+ - if @page.props.author && @page.props.posted_at
+ \.
+ - if @page.props.posted_at
+ %i
+ = time_tag(@page.props.posted_at.to_date, :format => :long, :pubdate => true)
+
+ - content_for :blog_content do
+ = yield
+
+ - if content_for?(:blog_content)
+ = yield(:blog_content)
+ - else
+ = @page.props.preview \ No newline at end of file