1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <% if (page.year || page.month) { %>
- <%- partial('_partial/archive') %>
- <% } else { %>
- <article id="archive-page" class="post article white-box">
- <section class='meta'>
- <h2 class="title">
- <a href="javascript:void(0)">
- Archives
- </a>
- </h2>
- </section>
- <section class="archive">
- <%
- var year = -1, postid = -1;
- site.posts.sort('date', -1).each(function(post) {
- post.year = date(post.date, 'YYYY');
- if (post.year && post.year !== year) {
- year = post.year;
- %>
- <div class="archive-item archive-year mark">
- <a id="archive-year-<%= year %>" href='<%= url_for("/archives/" + year + "/") %>' >
- <%= year %>
- </a>
- </div>
- <% } %>
- <div class="archive-item archive-post mark">
- <a href="<%= url_for(post.path) %>">
- <time><%= date(post.date, 'MM-DD') %></time>
- <span class="title"><span><%= post.title %></span></span>
- </a>
- </div>
- <% }); %>
- </section>
- </article>
- <!--
- <% if (page.total > 1) { %>
- <nav id="page-nav">
- <% if (page.prev != 0) { %>
- <a class="prev" rel="prev" href="<%= url_for(page.prev_link) %>">
- <span class="icon icon-chevron-left"></span>
- <span class="text">Previous</span>
- </a>
- <% } %>
- <% if (page.next != 0) { %>
- <a class="next" rel="next" href="<%= url_for(page.next_link) %>">
- <span class="text">Next</span>
- <span class="icon icon-chevron-right"></span>
- </a>
- <% } %>
- </nav>
- <% } %>
- -->
- <% } %>
|