---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>

{% if page.tag %}

{% assign posts = site.tags[page.tag] %}

{% else %}

{% assign posts = site.posts %}

{% endif %}


<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    {% if page.tag %}
      <title>{{ site.title | xml_escape }} articles tagged "{{page.tag}}"</title>
      <link>{{ site.url }}/articles/{{page.tag}}/</link>
    {% else %}
      <title>{{ site.title | xml_escape }} articles</title>
      <link>{{ site.url }}/articles/</link>
    {% endif %}
    <description>{{ site.description | xml_escape }}</description>

    {% if page.tag %}
      <atom:link href="http://hypothesis.works/articles/{{page.tag}}/feed/" rel="self" type="application/rss+xml" />
    {% else %}
      <atom:link href="http://hypothesis.works/articles/feed/" rel="self" type="application/rss+xml" />
    {% endif %}
    <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
    <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
    {% for post in posts limit:10 %}
      <item>
        <title>{{ post.title | xml_escape }}</title>
        <description>{{ post.excerpt | xml_escape }}
          &lt;a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}"&gt;Read more...&lt;/a&gt;
        </description>
        <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
        <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
        <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
        {% for tag in post.tags %}
        <category>{{ tag | xml_escape }}</category>
        {% endfor %}
        {% for cat in post.categories %}
        <category>{{ cat | xml_escape }}</category>
        {% endfor %}
      </item>
    {% endfor %}
  </channel>
</rss>
