Flutter-Bounty-Hunters / static_shock

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

[Shock] - Move page indexing to a plugin #87

Open matthew-carroll opened 2 months ago

matthew-carroll commented 2 months ago

Currently, page indexing, such as returning "all" pages or "byTag" are automatically added to the template context by the Static Shock pipeline.

Page indexing seems like a well-bounded responsibility. The page index looks at every page, decides what groups each page belongs to, and decides how the template can query pages. There might be a wide variety of indexing use-cases, including the introduction of search. Therefore, I think page indexing should be moved to a plugin.