Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
59 stars 5 forks source link

Make pages sortable (Resolves #66) #70

Closed matthew-carroll closed 3 months ago

matthew-carroll commented 3 months ago

Jinja templates can query all pages, as well as all pages with a given tag. This PR adds the ability to sort all returned pages by a given page property, as well as ascending or descending result order.

Before this PR we seemed to be missing a way to query all pages. This PR adds all page access to Jinja templates.

This PR adds a top-level page to the Docs website called "Directory" which uses the tag queries with ascending and descending order.

This PR adds a Docs guide showing how to display a directory of pages based on a page query.