Update template.ejs
This commit is contained in:
parent
c5801a8f32
commit
0bc816bad7
|
@ -89,22 +89,28 @@
|
||||||
</div>
|
</div>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
</div>
|
</div>
|
||||||
|
<% if (nextPageLink){ %>
|
||||||
|
<div class="item hidden">
|
||||||
|
<a class="hacky_link" href="<%- nextPageLink %>">More</a>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
|
</div><!-- container -->
|
||||||
|
|
||||||
<% if (nextPageLink){ %>
|
<% if (nextPageLink){ %>
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
<a class="button" href="<%- nextPageLink %>">Load More</a>
|
<a class="button" href="<%- nextPageLink %>">Load More</a>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div><!-- container -->
|
|
||||||
|
|
||||||
<% if ( isIndex ){ %>
|
<% if ( isIndex ){ %>
|
||||||
<script src="/infinite-scroll.js"></script>
|
<script src="/infinite-scroll.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var lastPageLoaded = null;
|
var lastPageLoaded = null;
|
||||||
var infScroll = new InfiniteScroll( '.container', {
|
var infScroll = new InfiniteScroll( '.container-fluid', {
|
||||||
// options
|
// options
|
||||||
hideNav:'.pagination',
|
hideNav:'.pagination',
|
||||||
append: '.item',
|
append: '.card',
|
||||||
history:false,
|
history:false,
|
||||||
prefill:true,
|
prefill:true,
|
||||||
path: function(){
|
path: function(){
|
||||||
|
|
Loading…
Reference in New Issue