From 433dbf9f3f10d1fabf7598e87475aad0f0b0da91 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 16 Jul 2016 01:59:36 -0400 Subject: show blog contents --- src/views/blog/list-item.ecr | 7 ++++++- src/views/blog/post.ecr | 30 ++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 src/views/blog/post.ecr (limited to 'src/views/blog') diff --git a/src/views/blog/list-item.ecr b/src/views/blog/list-item.ecr index 13131e0..23b868e 100644 --- a/src/views/blog/list-item.ecr +++ b/src/views/blog/list-item.ecr @@ -1,3 +1,8 @@
- id: <%= @post_id %> + <%= h(@item["name"]) %>
+ + by <%= h(@item["user_name"]) %> + on <%= h(@item["posted_at_text"]) %> +

+ <%= @item["body"] %>
diff --git a/src/views/blog/post.ecr b/src/views/blog/post.ecr new file mode 100644 index 0000000..d0aa534 --- /dev/null +++ b/src/views/blog/post.ecr @@ -0,0 +1,30 @@ + + + + + <%= + h(@item["name"]) + %> + + <% + # TODO: add theme styles + %> + + + + blog post + +
+ <%= h(@item["name"]) %>
+ + by <%= h(@item["user_name"]) %> + on <%= h(@item["posted_at_text"]) %> +

+ <%= @item["body"] %> +
+ + + <% + # TODO: add theme scripts + %> + -- cgit v1.2.3