diff options
-rw-r--r-- | layout/archive.ejs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/layout/archive.ejs b/layout/archive.ejs index e69de29..8b8f001 100644 --- a/layout/archive.ejs +++ b/layout/archive.ejs @@ -0,0 +1,14 @@ +<section class="archive"> + <ul class="archive-posts"> + <% page.posts.each(function(post) { %> + <li class="archive-post"> + <div class="archive-post-time"> + <%- date(post.date, theme.timeformat) %> + </div> + <a class="archive-post-title" href="<%- url_for(post.path) %>"> + <%= post.title %> + </a> + </li> + <% }); %> + </ul> +</section>
\ No newline at end of file |