Skip to content

Commit

Permalink
Merge pull request #77 from aaunel/gh-16
Browse files Browse the repository at this point in the history
Updated feed to utilize new standards, no longer presents unpublished posts
  • Loading branch information
larister committed Mar 10, 2015
2 parents c14a86a + 8e994f8 commit 2ad52b1
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions feed/atom/index.xml
@@ -1,40 +1,40 @@
---
layout:
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Async</title>
<subtitle>A JavaScript meetup group in Brighton &amp; Hove, UK</subtitle>
<link href="{{ site.url }}/feed/" rel="self"/>
<link href="{{ site.url }}/feed/" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/feed/atom/</id>
<author>
<name>{{ site.title }}</name>
<email>{{ site.email }}</email>
</author>
{% for post in site.posts limit:5 %}
<entry>
<title>{{ post.title | xml_escape }}</title>
{% if post.author %}
<author>
<name>{{ post.author.name }}</name>
<uri>{{ post.author.uri }}</uri>
</author>
{% endif %}
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ post.id }}</id>
<content type="html">
{% capture body %}
{% if post.category == "event" %}
<p>{{ post.date | date:"%l:%M%P %A, %-d %B %Y" }} @ <a href="{{ post.venue.location | post.venue.link }}">{{ post.venue.name }}, {{ post.venue.address }}</a></p>
<p>☞ <a href="{{ post.lanyrd }}">Add yourself on Lanyrd</a></p>
{% endif %}
{{ post.content | markdownify }}
{% endcapture %}
{{ body | xml_escape }}
</content>
</entry>
{% endfor %}
</feed>
<?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>{{ site.title | xml_escape }}</title>
<description>{{ site.caption | markdownify | strip_html | xml_escape }}</description>
<icon>{{ site.url }}/images/favicon.png</icon>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
{% for speaker in post.speakers %}
<dc:creator>{{ speaker.name | xml_escape }}</dc:creator>
{% endfor %}
{% if post.excerpt %}
<description>{{ post.excerpt | markdownify | strip_html | xml_escape }}</description>
{% else %}
<description>{{ post.content | markdownify | strip_html | xml_escape }}</description>
{% endif %}
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
<link>{{ site.url }}{{ post.url }}</link>
<atom:link href="{{ post.image.url | xml_escape }}" rel="enclosure" />
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
<content type="html">
{% capture body %}
{% if post.category == "event" %}
<p>{{ post.date | date:"%l:%M%P %A, %-d %B %Y" }} @ <a href="{{ post.venue.location | post.venue.link }}">{{ post.venue.name }}, {{ post.venue.address }}</a></p>
<p>☞ <a href="{{ post.lanyrd }}">Add yourself on Lanyrd</a></p>
{% endif %}
{{ post.content | markdownify }}
{% endcapture %}
{{ body | xml_escape }}
</content>
</item>
{% endfor %}
</channel>
</rss>

0 comments on commit 2ad52b1

Please sign in to comment.