-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
53 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<% if (post.prev || post.next){ %> | ||
<nav class="post-nav flex-row"> | ||
<div class="flex-col waves-block waves-effect prev"> | ||
<% if (post.prev){ | ||
var prevTitle = post.prev.title || '(no title)'; | ||
%> | ||
<a href="<%- url_for(post.prev.path) %>" title="<%=prevTitle %>" id="post-prev" class="post-nav-link"> | ||
<i class="icon icon-chevron-left"></i> | ||
<span class="article-nav-title">上一篇</span> | ||
<nav class="post-nav"> | ||
<% if (post.prev){ | ||
var prevTitle = post.prev.title || '[no title]'; | ||
%> | ||
<div class="waves-block waves-effect prev fl"> | ||
<a href="<%- url_for(post.prev.path) %>" id="post-prev" class="post-nav-link"> | ||
<div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div> | ||
<h4 class="title"><%=prevTitle %></h4> | ||
</a> | ||
<% } %> | ||
</div> | ||
<div class="flex-col waves-block waves-effect next"> | ||
<% if (post.next){ | ||
var nextTitle = post.next.title || '(no title)'; | ||
%> | ||
<a href="<%- url_for(post.next.path) %>" title="<%=nextTitle %>" id="post-next" class="post-nav-link"> | ||
<span class="article-nav-title">下一篇</span> | ||
<i class="icon icon-chevron-right"></i> | ||
</a> | ||
<% } %> | ||
</div> | ||
</div> | ||
<% } %> | ||
<% if (post.next){ | ||
var nextTitle = post.next.title || '[no title]'; | ||
%> | ||
<div class="waves-block waves-effect next fr"> | ||
<a href="<%- url_for(post.next.path) %>" id="post-next" class="post-nav-link"> | ||
<div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div> | ||
<h4 class="title"><%=nextTitle %></h4> | ||
</a> | ||
</div> | ||
<% } %> | ||
</nav> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
{ | ||
"name": "hexo-theme-material-indigo", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"hexo-renderer-less": "*" | ||
} | ||
"version": "0.3.0", | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters