add rss 🎉
This commit is contained in:
parent
3ac457b1ec
commit
9284365c72
4 changed files with 70 additions and 12 deletions
29
templates/rss.xml
Normal file
29
templates/rss.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<channel>
|
||||
<title><![CDATA[$blogtitle$—$title$]]></title>
|
||||
<link>$baseurl$</link>
|
||||
<description><![CDATA[$blogdesc$]]></description>
|
||||
<atom:link href="$baseurl$/rss.xml" rel="self" />
|
||||
|
||||
$for(posts)$
|
||||
<item>
|
||||
<title><![CDATA[$it.title$]]></title>
|
||||
<link>$baseurl$/$it.file$</link>
|
||||
<guid>$baseurl$/$it.file$</guid>
|
||||
<dc:creator><![CDATA[$author$]]></dc:creator>
|
||||
<pubDate>$it.date-rss$</pubDate>
|
||||
<description>
|
||||
<![CDATA[
|
||||
<p>tags: $it.tags[, ]$</p>
|
||||
|
||||
$if(it.summary)$
|
||||
$it.summary$
|
||||
$endif$
|
||||
]]>
|
||||
</description>
|
||||
</item>
|
||||
$endfor$
|
||||
</channel>
|
||||
</rss>
|
Loading…
Add table
Add a link
Reference in a new issue