提交 eb92d2b1 编写于 作者: 折影轻梦

#4 修复一些bug

上级 a966ca6f
......@@ -6,12 +6,13 @@
</div>
<div class="container">
<ul class="catalogue">
<% let order = theme.order_by
<%
let order = theme.order_by
page.posts.each(function (post) {
if(post.order !== ''){ order = post.order }
if(post.order_by !== null && post.order_by !== undefined){ order = post.order_by }
})
page.posts.sort(order).each(function (post) {
%>
<% page.posts.sort(order).each(function (post) { %>
<li>
<a href="<%- url_for(post.path) %>">
<span class="title"><%= post.title %></span>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册