I'm trying to populate my small blog on GH Pages. I'm stuck at Jekyll paginating.
Here's my _config.yml:
theme: jekyll-theme-cayman
title: iBug @ GitHub
url: https://ibug.github.io/
tagline: The small personal site for iBug
description: The small personal site for iBug
author: iBug
show_downloads: false
plugins:
- jekyll-paginate
- jekyll-redirect-from
- jekyll-mentions
- jekyll-seo-tag
paginate: 5
paginate_path: "/blog/page:num/"
And here's the content of the only post there:
---
layout: blog
permalink: /p/1
---
# Test Post
Nothing here
I want a paginated index page on /blog, and succeeding pages on /blog/page# (where # is a number). I copied a sample index.html and placed it at /blog/index.html in my repo.
But when I navigate to https://ibug.github.io/blog , it just show up like this:
{% if paginator.total_pages > 1 %} {% if paginator.previous_page %} « Prev {% else %} « Prev {% endif %} {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %} {{ page }} {% elsif page == 1 %} {{ page }} {% else %} {{ page }} {% endif %} {% endfor %} {% if paginator.next_page %} Next » {% else %} Next » {% endif %} {% endif %}
Reading the GH documentation, I learned that jekyll-paginate is a default plugin and cannot be disabled, so it shouldn't work this way.
I also have a dummy post at /_posts/2018-03-01-first-post.md, and it correctly shows up at https://ibug.github.io/2018/03/01/first-post
I don't want to install a Ruby dev environment and other stuff. I want to use only GH Pages's builtin functionality.
Can I get an index at /blog and /blog/pageN?