--- title: "JPC demo: Page" layout: page date: 2017-12-23 06:25:20 +0800 hidden: false share: false comments: false description: "Demo of Jekyll::Paginate::Content working on a page; expect no share/comments" keywords: viewsource: html, md paginate: true tags: - demo - jekyll - paginate-content --- {% if paginator.paginated %} View as a single page {% elsif paginator %} View as {{ paginator.total_pages }} pages {% endif %} This shows up at the top of all pages. This is page 1 of the JPC example. This is page 2. {% if paginator.paginated %}

This won't show up in the single-page view.

Go on to page {{ paginator.next_page }}

{% endif %} This is page 3. This is page 4. I have a [link] here in page 5. {% if paginator.paginated %} We're near the last page (page {{ paginator.last_page }}). {% endif %} This is page 6. This is the last page. This goes into all the pages, too! [link]: https://ibrado.org/