mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 07:16:10 +00:00
add RSS feed template
This commit is contained in:
parent
8129d6032d
commit
db491029b1
1 changed files with 29 additions and 0 deletions
29
rss/dash_blog_rss.xml
Normal file
29
rss/dash_blog_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:content="http://purl.org/rss/1.0/modules/content/"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
|
||||||
|
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
|
||||||
|
<channel>
|
||||||
|
<title>{{ site.name | xml_escape }}</title>
|
||||||
|
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
|
||||||
|
<link>{{ site.url }}</link>
|
||||||
|
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
|
||||||
|
{% for post in site.posts %}
|
||||||
|
<item>
|
||||||
|
<title type="html">{{ post.title | xml_escape }}</title>
|
||||||
|
{% if post.author.name %}
|
||||||
|
<dc:creator>{{ post.author.name | xml_escape }}</dc:creator>
|
||||||
|
{% endif %}
|
||||||
|
<description><![CDATA[{{ post.excerpt }}]]></description>
|
||||||
|
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
||||||
|
<link>{{ site.url }}{{ post.url }}</link>
|
||||||
|
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
||||||
|
<content:encoded><![CDATA[{{ post.content }}]]></content:encoded>
|
||||||
|
</item>
|
||||||
|
{% endfor %}
|
||||||
|
</channel>
|
||||||
|
</rss>
|
Loading…
Add table
Add a link
Reference in a new issue