proxitok/templates/views/rss.latte

19 lines
812 B
Plaintext
Raw Permalink Normal View History

<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{$title}</title>
<description><![CDATA[{$desc}]]></description>
2022-11-04 15:08:19 -04:00
<link>{$link}</link>
<atom:link href="{$link . '/rss'}" rel="self" type="application/rss+xml"></atom:link>
{foreach $items as $item}
<item>
<title>{$item->desc}</title>
2023-04-27 14:22:55 -04:00
<description><![CDATA[<p n:ifcontent>{render_desc($item->desc, $item->textExtra ?? [])|noescape}</p>{include '../components/themes/common/content.latte', item: $item, isAutoplay: false, isSimple: true}]]></description>
2022-11-04 15:08:19 -04:00
<link>{url_video_internal($item->author->uniqueId, $item->id)}</link>
2022-05-18 05:44:58 -04:00
<pubDate>{date('r', $item->createTime)}</pubDate>
<guid isPermaLink="false">{$item->id}</guid>
</item>
{/foreach}
</channel>
</rss>