Copyright | (c) 2024 Sena |
---|---|
License | GPL-3.0-or-later |
Maintainer | contact@sena.pink |
Stability | stable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Gemoire.Gemlog.Feed
Contents
Description
Feed related functions and default templates for gemlogs
The variables that are available to use in a feed template is not defined
here, as feeds need the whole gemlog. See Gemlog
for the variables
available in the intended use.
Synopsis
- sortPosts :: [Values] -> [Values]
- lastModified :: [Values] -> Values
- escapeFeed :: Bool -> Values -> Values
- defGemfeed :: Template
- defGemfeedEntry :: Template
- defAtom :: Template
- defAtomEntry :: Template
Utility functions
lastModified :: [Values] -> Values Source #
Escapes variables in feeds. Only does bare minimum of encoding, enough to make the feed valid.
- Percent encodes the variable
base
and those ending withurl
. - Doesn't do anything to the variable
entries
. - Ampersand encodes everything else only for Atom feeds.