NAME
pft gen-rss - Generate a Feed RSS for the website
SYNOPSIS
pft gen-rss
DESCRIPTION
This command will generate an XML file according to the RSS (Really Simple Syndacation) specification.
The default behaviour is to position the generated file in the root of the build
directory, and named feed.rss
. The generated feed will contain one item
element for each of last 10 blog entries.
The global PFT configuration allows to change the default path of the file and the number of listed blog entries (see pft-init(1)).
OPTIONS
EXIT STATUS
1 in case of option parsing failure.
2 if it was impossible to construct the filesystem tree.
3 in case of corrupt configuration.
BUGS
In PFT blog entries are timestamped with a day resolution. There is no obvious way to timestamp the publishing date (pubDate
) of blog entries with a better time resolution, so the hour is rounded up to midnight.
The generated RSS feed will use the publishing date of the most recent entry as lastBuildDate
. This makes the implementation simple, but yields inaccurate results should the user update an old blog entry.