2020-03-18 23:14:09 +08:00
|
|
|
<% if (is_post()) { %>
|
2020-03-19 18:11:13 +08:00
|
|
|
<div class="article-container">
|
2020-03-19 22:12:09 +08:00
|
|
|
<div class="article-title">
|
2020-03-21 23:04:01 +08:00
|
|
|
<h3><a class="article-title-hover-animation"><%= page.title %></a></h3>
|
2020-03-18 23:14:09 +08:00
|
|
|
</div>
|
2020-03-20 10:58:14 +08:00
|
|
|
|
2020-03-21 23:04:01 +08:00
|
|
|
<div class="meta-info">
|
|
|
|
<%- partial('common/article-meta-info', {articleObject: page, index: true}) %>
|
2020-03-18 23:14:09 +08:00
|
|
|
</div>
|
2020-03-20 10:58:14 +08:00
|
|
|
|
2020-03-19 22:12:09 +08:00
|
|
|
<div class="article-content">
|
2020-03-19 14:51:48 +08:00
|
|
|
<%- page.content %>
|
|
|
|
</div>
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2020-03-19 22:12:09 +08:00
|
|
|
<div class="article-nav">
|
|
|
|
<% if (page.prev) { %>
|
|
|
|
<div class="article-prev">
|
2020-03-21 23:04:01 +08:00
|
|
|
<a class="prev btn" rel="prev"
|
2020-03-19 22:12:09 +08:00
|
|
|
href="<%= url_for(page.prev.path) %>"><i class="fa fa-chevron-left"></i> <%= page.prev.title %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
<% if (page.next) { %>
|
|
|
|
<div class="article-next">
|
2020-03-21 23:04:01 +08:00
|
|
|
<a class="next btn" rel="next"
|
2020-03-19 22:12:09 +08:00
|
|
|
href="<%= url_for(page.next.path) %>"><%= page.next.title %> <i class="fa fa-chevron-right"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
2020-03-26 15:21:57 +08:00
|
|
|
|
2020-03-18 23:14:09 +08:00
|
|
|
<div class="comment-container">
|
2020-03-21 11:18:52 +08:00
|
|
|
<%- partial('common/valine') %>
|
2020-03-18 23:14:09 +08:00
|
|
|
</div>
|
2020-03-15 15:45:38 +08:00
|
|
|
</div>
|
|
|
|
|
2020-03-18 23:14:09 +08:00
|
|
|
<% } %>
|