summaryrefslogtreecommitdiff
path: root/amber/layouts/_blog_summary.html.haml
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-02-18 23:44:14 -0800
committerelijah <elijah@riseup.net>2015-02-18 23:44:14 -0800
commite53e113dcde3e3686095c3661307efccc5c7e64e (patch)
tree2d5219d73587750ec478811c65499325a95a04db /amber/layouts/_blog_summary.html.haml
initial conversation from leap_doc and leap_website
Diffstat (limited to 'amber/layouts/_blog_summary.html.haml')
-rw-r--r--amber/layouts/_blog_summary.html.haml16
1 files changed, 16 insertions, 0 deletions
diff --git a/amber/layouts/_blog_summary.html.haml b/amber/layouts/_blog_summary.html.haml
new file mode 100644
index 0000000..b14f6d0
--- /dev/null
+++ b/amber/layouts/_blog_summary.html.haml
@@ -0,0 +1,16 @@
+- page = locals[:page]
+%article.page-summary
+ %h2= link(page.title => amber_path(page))
+ .byline
+ - if page.props.author
+ %span.author>= 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)
+ %div.content
+ - if page.props.preview
+ = page.props.preview
+ - if page.props.more
+ = link(I18n.t(:read_more) => amber_path(page)) \ No newline at end of file