feat: add post overhead

This commit is contained in:
XPoet 2020-04-13 18:27:16 +08:00
parent fe0e0024b5
commit f6e90459ea
3 changed files with 7 additions and 3 deletions

View File

@ -18,4 +18,5 @@ archives: Archives
about: About
site_uv: UV
site_pv: PV
links: Links
links: Links
top: TOP

View File

@ -18,4 +18,5 @@ archives: 归档
about: 关于
site_uv: 访问人数
site_pv: 总访问量
links: 友链
links: 友链
top: 顶置

View File

@ -3,7 +3,9 @@
<% page.posts.forEach(post => { %>
<li class="home-article-item">
<h3 class="home-article-title">
<a class="title-hover-animation" href="<%- url_for(post.path) %>"><%= post.title %></a>
<a class="title-hover-animation" href="<%- url_for(post.path) %>">
<%= (post.top ? `[${__('top')}] ` : '') + post.title %>
</a>
</h3>
<div class="home-article-content markdown-body">