hexo-theme-geek/layout/index.ejs

29 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-01-08 12:02:34 +08:00
<div class="hd logodiv">
<%- image_tag('img/logo.png',{class: 'logopng'}) %>
<p class="logot"><span class="logo_1">&lt;</span><span class="logo_2">/</span><span class="logo_3">#</span> <%= theme.logo_title %> <span class="logo_3">#</span><span class="logo_2">/</span><span class="logo_1">&gt;</span></p>
</div>
<%- partial('_partial/nav') %>
<div class="hd">
<% var last; %>
<% page.posts.each(function (post) { %>
<% var year = post.date.year(); %>
<% if (last != year){ %>
<div class="titlex">
<p><span class="jing">#</span>
<%= year %>
</p>
</div>
<% last = year; %>
<% } %>
<a class="flink" href="<%- url_for(post.path) %>">
<div class="list">
<div class="postname">
<%= post.title %>
</div>
<div class="posttime">
<%- full_date(post.date, 'MMMM Do') %>
</div>
</div>
</a>
<% }) %>
</div>