Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/j911/jekyll-infinite-scroll

🖱 infinite scroll in jekyll
https://github.com/j911/jekyll-infinite-scroll

Last synced: about 2 months ago
JSON representation

🖱 infinite scroll in jekyll

Awesome Lists containing this project

README

        

# jekyll-infinite-scroll
![CDN](https://img.shields.io/badge/CDN-1.0.5-red.svg)
![bower-modules](https://img.shields.io/badge/Bower-modules-green.svg)
![MIT-LISENCE](https://img.shields.io/badge/license-MIT-blue.svg)

jekyll infinite scroll

## install

```
$ bower install jekyll-infinite-scroll --save
```
or
```

```
or
direct download [this link](https://github.com/J911/jekyll-infinite-scroll/archive/master.zip)

## Using
1. set pagenation in jekyell
add "jekyll-paginate" in `_config.yml` and `Gemfile`
and set `_config.yml`
```
paginate: 2
paginate_path: "/page/:num"
```

2. set pagenation in html
(example)
```


```
3. include this lib and setting
```

var postWrapperId = 'card-wrapper';
var paginatePath = '/page/'
new InfiniteScroll(paginatePath, postWrapperId);

```
4. Done! ✌🏻

## LICENSE
MIT License