peterdesmet / petridish

Jekyll theme for research project websites 🧫
https://peterdesmet.github.io/petridish
MIT License
49 stars 44 forks source link

Showcase manual sorting document (Jekyll 4.0) #62

Closed peterdesmet closed 1 year ago

peterdesmet commented 1 year ago

Jekyll 4.0 supports custom sorting for collection elements. Unfortunately, GitHub Pages currently uses 3.9.2: https://pages.github.com/versions/

In the meantime, Petridish will support custom sorting using the order property in the page frontmatter. It has 3 main drawbacks:

To be picked up again once GitHub Pages supports Jekyll 4.0:

collections:
  docs:                                 # Settings for the "docs" collection
    output: true
    permalink: "/:collection/:path/"
    order:
      - installation.md
      - configuration.md
      - markdown.md
peterdesmet commented 1 year ago

Support for collections was removed, so manual order is not necessary.