diff options
| -rw-r--r-- | layout/page.ejs | 0 | ||||
| -rw-r--r-- | layout/post.ejs | 13 | 
2 files changed, 13 insertions, 0 deletions
| diff --git a/layout/page.ejs b/layout/page.ejs deleted file mode 100644 index e69de29..0000000 --- a/layout/page.ejs +++ /dev/null diff --git a/layout/post.ejs b/layout/post.ejs index e69de29..0de6e5a 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -0,0 +1,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>
\ No newline at end of file | 
