Add rss feed
This commit is contained in:
parent
857e0b65ac
commit
46807b2ba6
5 changed files with 119 additions and 9 deletions
51
pandoc/rss-template.xml
Normal file
51
pandoc/rss-template.xml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
$if(title)$
|
||||
<title>$title$</title>
|
||||
$endif$
|
||||
$if(link)$
|
||||
<link>$link$</link>
|
||||
$endif$
|
||||
$if(description)$
|
||||
<description>$description$</description>
|
||||
$endif$
|
||||
$if(lang)$
|
||||
<language>$lang$</language>
|
||||
$endif$
|
||||
$if(pubdate)$
|
||||
<pubDate>$pubdate$</pubDate>
|
||||
$endif$
|
||||
$if(builddate)$
|
||||
<lastBuildDate>$builddate$</lastBuildDate>
|
||||
$endif$
|
||||
<docs>https://www.rssboard.org/rss-specification</docs>
|
||||
<generator>pandoc</generator>
|
||||
$if(editor)$
|
||||
<managingEditor>$editor$</managingEditor>
|
||||
$endif$
|
||||
$if(webmaster)$
|
||||
<webMaster>$webmaster$</webMaster>
|
||||
$endif$
|
||||
<atom:link href="https://www.rssboard.org/files/sample-rss-2.xml" rel="self" type="application/rss+xml"/>
|
||||
$for(articles)$
|
||||
<item>
|
||||
$if(articles.title)$
|
||||
<title>$articles.title$</title>
|
||||
$endif$
|
||||
$if(articles.filename)$
|
||||
<link>$link$/$articles.filename$.html</link>
|
||||
$endif$
|
||||
$if(articles.summary)$
|
||||
<description>$articles.summary$</description>
|
||||
$endif$
|
||||
$if(articles.date)$
|
||||
<pubDate>$articles.pubdate$</pubDate>
|
||||
$endif$
|
||||
$if(articles.filename)$
|
||||
<guid>$articles.filename$</guid>
|
||||
$endif$
|
||||
</item>
|
||||
$endfor$
|
||||
</channel>
|
||||
</rss>
|
||||
Loading…
Add table
Add a link
Reference in a new issue