summaryrefslogtreecommitdiff
path: root/amber/layouts/_titlebox.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'amber/layouts/_titlebox.html.haml')
-rw-r--r--amber/layouts/_titlebox.html.haml16
1 files changed, 16 insertions, 0 deletions
diff --git a/amber/layouts/_titlebox.html.haml b/amber/layouts/_titlebox.html.haml
new file mode 100644
index 0000000..beef995
--- /dev/null
+++ b/amber/layouts/_titlebox.html.haml
@@ -0,0 +1,16 @@
+- if @page.props.author || @page.props.posted_at
+ .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, :pubdatwe => true)
+
+- if @page.props.summary
+ .summary
+ = @page.props.summary
+-# elsif page.props.preview
+ .summary
+ = @page.props.preview \ No newline at end of file