diff options
author | Doge <[email protected]> | 2021-05-07 14:54:26 +0800 |
---|---|---|
committer | Doge <[email protected]> | 2021-05-07 14:54:26 +0800 |
commit | afc76ba21ddea93e04a3267b99836b7e926eae70 (patch) | |
tree | b17fc7904a238d98dc454dada9ba85ed1c677072 | |
parent | 99ca844e3e89e53e44e350001cb20cd91da95bbe (diff) | |
download | chromate-afc76ba21ddea93e04a3267b99836b7e926eae70.tar.gz chromate-afc76ba21ddea93e04a3267b99836b7e926eae70.tar.bz2 chromate-afc76ba21ddea93e04a3267b99836b7e926eae70.zip |
Add post support
-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 |