Copyright | Copyright (C) 2024 Yoo Chung |
---|---|
License | All rights reserved |
Maintainer | web@chungyc.org |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Web.Site.Rules.Update
Description
Exports rules generating updates about me or the web site.
Documentation
Pattern for files matched or created in this module.
These will be used to generate the sitemap.
withLatest :: (Context String -> Compiler (Item String)) -> Compiler (Item String) Source #
Apply a context with the latest update in the list field latest-update
to the given rule.
In particular, this is used by the front page to include the latest update.
The latest update will have a latest-update
metadata field with a true value
and a teaser
metadata field with the teaser if it exists.