summaryrefslogtreecommitdiff
path: root/layout/post.ejs
blob: 0de6e5ac9d7aef256cabd905f6c5c590ea2751c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<article class="post">
    <!-- Post thumbnail with lazayload support -->
    <div class="post-thumbnail" style="background-image: url('<%= page.thumbnail %>');"></div>

    <!-- Post title and content -->
    <div class="post-meta">
        <div class="post-time">
            <%- date(page.date, "MMM, D YYYY" ) %>
        </div>
    </div>
    <h1 class="post-title"><%= page.title %></h1>
    <div class="post-content"><%- page.content %></div>
</article>