fix: fixed comment and nav display error in article content page
This commit is contained in:
parent
5e69aff61f
commit
b101f7e67a
|
@ -13,31 +13,39 @@
|
||||||
<%- page.content %>
|
<%- page.content %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="article-nav">
|
<% if (page.prev || page.next) { %>
|
||||||
<% if (page.prev) { %>
|
<div class="article-nav">
|
||||||
<div class="article-prev">
|
<% if (page.prev) { %>
|
||||||
<a class="prev btn"
|
<div class="article-prev">
|
||||||
rel="prev"
|
<a class="prev btn"
|
||||||
href="<%= url_for(page.prev.path) %>"
|
rel="prev"
|
||||||
>
|
href="<%= url_for(page.prev.path) %>"
|
||||||
<i class="fa fa-chevron-left"></i> <span class="post-nav-title-item"><%= page.prev.title %></span><span class="post-nav-item"><%= __('prev_posts') %></span>
|
>
|
||||||
</a>
|
<i class="fa fa-chevron-left"></i>
|
||||||
</div>
|
<span class="post-nav-title-item"><%= page.prev.title %></span>
|
||||||
<% } %>
|
<span class="post-nav-item"><%= __('prev_posts') %></span>
|
||||||
<% if (page.next) { %>
|
</a>
|
||||||
<div class="article-next">
|
</div>
|
||||||
<a class="next btn"
|
<% } %>
|
||||||
rel="next"
|
<% if (page.next) { %>
|
||||||
href="<%= url_for(page.next.path) %>"
|
<div class="article-next">
|
||||||
>
|
<a class="next btn"
|
||||||
<span class="post-nav-title-item"><%= page.next.title %></span><span class="post-nav-item"><%= __('next_posts') %></span> <i class="fa fa-chevron-right"></i>
|
rel="next"
|
||||||
</a>
|
href="<%= url_for(page.next.path) %>"
|
||||||
</div>
|
>
|
||||||
<% } %>
|
<span class="post-nav-title-item"><%= page.next.title %></span>
|
||||||
</div>
|
<span class="post-nav-item"><%= __('next_posts') %></span>
|
||||||
|
<i class="fa fa-chevron-right"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
<div class="comment-container">
|
<% if (theme.comments.valine.enable || theme.comments.gitalk.enable) { %>
|
||||||
<%- partial('_partial/comments/comment') %>
|
<div class="comment-container">
|
||||||
</div>
|
<%- partial('_partial/comments/comment') %>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue