Rewrite RSS post feed to be generated
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<item>
|
||||
<title>{{title}}</title>
|
||||
<link>https://raymon.dev/posts/{{id}}.html</link>
|
||||
<guid>https://raymon.dev/posts/{{id}}.html</guid>
|
||||
<description>
|
||||
<![CDATA[
|
||||
{{content}}
|
||||
]]>
|
||||
</description>
|
||||
<content type="html">
|
||||
{{content}}
|
||||
</content>
|
||||
<pubDate>{{date}}</pubDate>
|
||||
</item>
|
||||
@@ -26,7 +26,7 @@
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{title}}</h1>
|
||||
<h3>For those using a RSS reader, subscribe here: <a href="/api/posts/rss.xml">rss.xml</a></h3>
|
||||
<h3>For those using a RSS reader, subscribe here: <a href="/posts/rss.xml">rss.xml</a></h3>
|
||||
</header>
|
||||
<time datetime="{{date}}"></time>
|
||||
{{content}}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<atom:link href="https://raymon.dev/api/posts/rss.xml" rel="self" type="application/rss+xml" />
|
||||
<title>Posts</title>
|
||||
<link>https://raymon.dev</link>
|
||||
<description>Personal blog</description>
|
||||
<language>en-us</language>
|
||||
|
||||
{{items}}
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user