archive.ejs 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="timeline timeline-wrap">
  2. <% var last;
  3. page.posts.each(function(post, i) {
  4. var year = post.date.year();
  5. if (last != year) {
  6. last = year; %>
  7. <div class="timeline-row timeline-row-major">
  8. <span class="node"><i class="fa fa-calendar"></i></span>
  9. <h1 class="title"><%= year %></h1>
  10. </div>
  11. <% } %>
  12. <div class="timeline-row">
  13. <span class="node"></span>
  14. <div class="content">
  15. <%- partial('common/post/title', { post: post, index: true, class_name: 'timeline-article-title' }) %>
  16. <div class="article-meta">
  17. <%- partial('common/post/date', { post: post, class_name: 'article-date', date_format: null }) %>
  18. <%- partial('common/post/category', { post: post }) %>
  19. <%- partial('common/post/tag', { post: post }) %>
  20. </div>
  21. </div>
  22. </div>
  23. <% }); %>
  24. </div>
  25. <% if (page.total > 1) { %>
  26. <nav id="page-nav">
  27. <%- paginator({
  28. prev_text: '&laquo; ' + __('nav.prev'),
  29. next_text: __('nav.next') + ' &raquo;'
  30. }) %>
  31. </nav>
  32. <% } %>