提交 cb3111e0 编写于 作者: W wizardforcel

add pagination

上级 8fff8b38
<div class="alignleft">
<p>
<% if (config.author){ %>
&copy; <%= new Date().getFullYear() %> <%= config.author %>
<% } else { %>
&copy; <%= new Date().getFullYear() %> <%= config.title %>
<% } %>
All rights reserved.</p>
<p>Powered by <a href="http://hexo.io/" target="_blank">Hexo</a></p>
</div>
<div class="clearfix"></div>
......
<nav id="pagination">
<% if (page.prev){ %>
<a href="<%- config.root %><%- page.prev_link %>" class="alignleft prev"><%= __('prev') %></a>
<% } %>
<% if (page.next){ %>
<a href="<%- config.root %><%- page.next_link %>" class="alignright next"><%= __('next') %></a>
<% } %>
<div class="clearfix"></div>
<% if (page.total > 1){ %>
<nav id="page-nav">
<%- paginator({
prev_text: "&laquo; 上一页",
next_text: "下一页 &raquo;"
}) %>
</nav>
<% } %>
</nav>
\ No newline at end of file
#pagination
clearfix()
margin block-margin auto
background rgba(0,0,0,0.65)
border-radius 17px
text-align center
overflow hidden
margin-bottom 50px
a, span
padding 10px 20px
line-height 1
height 2ex
a
display block
padding 5px 10px
background color-meta
color color-link
font-family font-title
// text-shadow 0 0 1px #fff
margin-bottom 50px
color color-font
text-decoration none
&:hover
background color-link
color #fff
text-decoration none
text-shadow none
background #000
color color-link
.prev
&:before
content '\f053'
padding-right 10px
font-family font-icon
float left
.next
&:after
content '\f054'
padding-left 10px
font-family font-icon
\ No newline at end of file
float right
.page-number
display inline-block
@media mq-mobile
display none
.current
color color-cont
font-weight bold
.space
color color-border
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册