Skip to content

Commit

Permalink
first proper cut at RSS feed (refs #675)
Browse files Browse the repository at this point in the history
  • Loading branch information
makeusabrew committed Dec 13, 2011
1 parent 745db0b commit 5fbdaee
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions apps/feed/views/index.tpl
@@ -1,14 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="{$full_url}" rel="self" type="application/rss+xml" />
<title>Payne Digital</title>
<link>{$base_href}</link>
<description>Web Application &amp; Mobile Development</description>
{foreach from=$articles item="article"}
<item>
<title>{$article->title}</title>
<link>{$base_href}{$article->getUrl()}</link>
</item>
{/foreach}
{foreach from=$articles item="article"}
<item>
<title>{$article->title}</title>
<link>{$base_href}{$article->getUrl()}</link>
<description>
<![CDATA[
{$article->content}
]]>
</description>
<guid>{$base_href}{$article->getUrl()}</guid>
<pubDate>{$article->published|date_format:"D, d M Y H:i:s O"}</pubDate>
</item>
{/foreach}
</channel>
</rss>

0 comments on commit 5fbdaee

Please sign in to comment.