forked from HPR/hpr_generator
Setting up static RSS feeds
site-generator: Changed the routine used to generate entities in
'HTML::Entities'; see filter function 'xml_entity'
site.cfg: Added root variable 'http_baseurl' which defines the base URL
using 'http'
templates/rss.tpl.xml: RSS template defining the channel and inserting
the 'item' definitions; adjusted to be in step with the PHP version.
templates/shared-item.tpl.xml: RSS template used for each 'item' in an
RSS feed; contains a call to 'HTML::Strip' which turns off the
addition of spaces when removing tags; adjusted to be in step with
the PHP version.
templates/shared-utils.tpl.html: Macro collection used by other
templates; addition of temporay macro 'display_explicit_feed_2'
which generates 'Yes/No' strings to be in step with the PHP version.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<!--% PROCESS 'shared-utils.tpl.html' %-->
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0"
|
||||
xmlns:googleplay="https://www.google.com/schemas/play-podcasts/1.0"
|
||||
xmlns:atom="https://www.w3.org/2005/Atom"
|
||||
xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" >
|
||||
<channel>
|
||||
<title>Hacker Public Radio</title>
|
||||
@@ -17,7 +17,7 @@
|
||||
<itunes:category text="Education">
|
||||
<itunes:category text="Training"/>
|
||||
</itunes:category>
|
||||
<itunes:image href="<!--% absolute_url(baseurl) %-->images/hpr_feed_itunes.png"/>
|
||||
<itunes:image href="<!--% absolute_url(http_baseurl) %-->images/hpr_feed_itunes.png"/>
|
||||
<itunes:explicit>yes</itunes:explicit>
|
||||
<itunes:author>Hacker Public Radio</itunes:author>
|
||||
<itunes:keywords>Community Radio, Tech Interviews, Linux, Open, Hobby, Software Freedom</itunes:keywords>
|
||||
@@ -30,7 +30,7 @@
|
||||
</itunes:owner>
|
||||
<webMaster>admin@hackerpublicradio.org (HPR Volunteer)</webMaster>
|
||||
<generator>site-generator</generator>
|
||||
<docs>https://www.rssboard.org/rss-specification</docs>
|
||||
<docs>http://www.rssboard.org/rss-specification</docs>
|
||||
<ttl>43200</ttl>
|
||||
<skipDays>
|
||||
<day>Saturday</day>
|
||||
@@ -47,9 +47,9 @@
|
||||
<googleplay:author>HPR Volunteer</googleplay:author>
|
||||
<googleplay:description>Hacker Public Radio is a podcast that releases shows every weekday Monday through Friday. Our shows are produced by the community (you) and can be on any topic that is of interest to hackers and hobbyists.</googleplay:description>
|
||||
<googleplay:email>admin@hackerpublicradio.org</googleplay:email>
|
||||
<googleplay:image href="<!--% absolute_url(baseurl) %-->images/hpr_feed_itunes.png"/>
|
||||
<googleplay:image href="<!--% absolute_url(http_baseurl) %-->images/hpr_feed_itunes.png"/>
|
||||
<googleplay:category text="Technology"/>
|
||||
<atom:link href="<!--% absolute_url(baseurl) %--><!--% filename %-->" rel="self" type="application/rss+xml" />
|
||||
<atom:link href="<!--% absolute_url(http_baseurl) %--><!--% filename %-->" rel="self" type="application/rss+xml" />
|
||||
<pubDate><!--% format_feed_date(date.now) %--></pubDate>
|
||||
|
||||
<!--% INCLUDE $content %-->
|
||||
|
||||
Reference in New Issue
Block a user