personal-1.1.0: Personal web site for Yoo Chung
CopyrightCopyright (C) 2024 Yoo Chung
LicenseAll rights reserved
Maintainerweb@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Web.Site.Rules.Update

Description

Exports rules generating updates about me or the web site.

Synopsis

Documentation

rules :: Rules () Source #

Rules related to recent updates about me or the web site.

items :: Pattern Source #

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.