pft gen-rss - Generate a Feed RSS for the website
pft gen-rss
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.
build
feed.rss
item
The global PFT configuration allows to change the default path of the file and the number of listed blog entries (see pft-init(1)).
Show this guide
1 in case of option parsing failure.
2 if it was impossible to construct the filesystem tree.
3 in case of corrupt configuration.
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.
pubDate
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.
lastBuildDate
pft(1), pft-init(1)
To install App::PFT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PFT
CPAN shell
perl -MCPAN -e shell install App::PFT
For more information on module installation, please visit the detailed CPAN module installation guide.