Skip to content
Permalink
Browse files

upgrade to jekyll-paginate-v2

  • Loading branch information
heychirag committed Aug 18, 2019
1 parent c950d72 commit b06cda70e5ccf4a00af6bc659cd46c3a17c13165
Showing with 13 additions and 4 deletions.
  1. +2 −0 Gemfile
  2. +8 −3 _config.yml
  3. +3 −1 blog/index.html → blog.html
@@ -3,3 +3,5 @@ source 'http://rubygems.org'
gem 'github-pages'
gem 'html-proofer'
gem 'jekyll-admin'

gem "jekyll-paginate-v2", "~> 2.0"
@@ -72,9 +72,13 @@ authors:
# normal = 560px / large = 810px
width: normal

# if you don't need pagination, comment the *paginate* configs below
# paginate: 5
# paginate_path: "blog/:num/"
# if you do/don't need pagination, toggle 'enabled' between true/false below
pagination:
enabled: false
sort_reverse: true # display recent posts first
title: ':title' # Changing this will mess up the header display logic
per_page: 5
permalink: "/:num/" # pagination link that will be appended

# if you don't need projects, comment the *projects* configs below
projects: true
@@ -107,6 +111,7 @@ plugins:
- jekyll-feed
- jemoji
- jekyll-admin
- jekyll-paginate-v2

jekyll-mentions:
base_url: https://github.com
@@ -3,11 +3,13 @@
# https://jekyllrb.com/docs/pagination/
layout: page
title: Blog
pagination:
enabled: true
---
<section class="list">
{% if site.posts.size == 0 %}
<p class="text-center">Nothing published yet!</p>
{% elsif site.paginate %}
{% elsif site.pagination.enabled %}
{% for post in paginator.posts %}
{% if post.category == 'blog' %}
{% if post.hidden != true %}

0 comments on commit b06cda7

Please sign in to comment.
You can’t perform that action at this time.