Hello,
The general way to accomplish this is:
- Use `getMatches :: MonadMetadata m => Pattern -> m [Identifier]` to
get a list of posts anywhere
- Optionally order them using their metadata, using: `getMetadata ::
MonadMetadata m => Identifier -> m Metadata`
Both `Compiler` and `Rules` have a `MonadMetadata` instance, so you
can do this anywhere. `Rules` is preferable because it won't need
recomputation, but you'll have to use `rulesExtraDependencies` in this
case.
Let me know if you need more detailed information.
Hope this helps,
Peace,
Jasper