| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
MathiasSM.Rules.Redirects
Description
Rules that build redirect pages from aliases
Synopsis
- processRedirects :: SiteConfig -> Rules ()
- data Entry = Entry {}
- planRedirects :: [Entry] -> Either [String] [(FilePath, FilePath)]
Documentation
processRedirects :: SiteConfig -> Rules () Source #
Builds a redirect page for every `aliases:` of every published page and post
Invalid aliases fail the build.
A published page or post, with the old paths that should lead to it
Constructors
| Entry | |