al-folio icon indicating copy to clipboard operation
al-folio copied to clipboard

Cannot customize multiple pages with pagination like the 'blog' page

Open AtivJoshi opened this issue 2 years ago • 1 comments

Discussed in https://github.com/alshedivat/al-folio/discussions/678

Originally posted by AtivJoshi May 21, 2022 I created a new folder called al-folio/misc and a file misc/index.html, a new folder _extras that contains all the posts that are to be displayed in the misc section and, created a new collection called extras in _config.yml file. The misc/index.html has the following content:

---
layout: default 
title: miscs
nav: true
nav_order: 3
pagination:
  enabled: true
  collection: extras
  permalink: /page/:num/
  per_page: 5
  sort_field: date
  sort_reverse: true
  trail:
    before: 1 # The number of links before the current page
    after: 3  # The number of links after the current page
---
Some text.

<!-- custom liquid code -->

Now, no matter what I put after the front-matter in misc/index.html, the misc page is always built according to the blog/index.html (i.e. the "Some text" string right after the front-matter is not displayed, instead the heading of blog/index,html is displayed ). Although the articles in the _extras directory are all displayed correctly with pagination, the formatting is just like the "blog" page and I cannot change it. What should I do to customize the misc page? Note that if I remove all the Liquid syntax, then the "Some text" string is displayed and the list of articles is not displayed.

Link to my relevant commit.

AtivJoshi avatar May 22 '22 10:05 AtivJoshi

I tried to implement this on my site a long time back, but was unable to do it. Though, I don't know if the jekyll-paginate-v2 plugin supports multiple pages or not.

Maybe it would be a better idea to open an issue with the upstream plugin repo.

rohandebsarkar avatar Jun 26 '22 09:06 rohandebsarkar

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 31 '22 08:08 stale[bot]