-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 & 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> |