aboutsummaryrefslogtreecommitdiff
path: root/src/views/blog/post.ecr
blob: d0aa534703bc6cf4094530a0717644e917ac3066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang='en-US'>
  <head>
    <meta charset="utf-8"/>
    <title><%=
      h(@item["name"])
    %></title>

    <%
      # TODO: add theme styles
    %>
  </head>

  <body>
    <b>blog post</b>

    <div class='post'>
      <b><%= h(@item["name"]) %></b><br/>
      <b>
        by <%= h(@item["user_name"]) %>
        on <%= h(@item["posted_at_text"]) %>
      </b><br/><br/>
      <%= @item["body"] %>
    </div>
  </body>

  <%
    # TODO: add theme scripts
  %>
</html>