Permalink
Browse files

RSS Feed

  • Loading branch information...
1 parent c3beb17 commit 1a6a165f2618e0e278df4cfbe0820feec1f03960 @matthewjohnston4 matthewjohnston4 committed Apr 13, 2016
Showing with 32 additions and 1 deletion.
  1. +1 −1 _includes/head.html
  2. +31 −0 feed/index.xml
View
@@ -21,5 +21,5 @@
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
- <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed/" | prepend: site.baseurl | prepend: site.url }}" />
</head>
View
@@ -0,0 +1,31 @@
+---
+layout: nil
+---
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title type="text" xml:lang="en">{{ site.title }}</title>
+ <link type="application/atom+xml" href="{{ site.url }}/feed/" rel="self"/>
+ <link type="text" href="{{ site.url }}" rel="alternate"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>{{ site.url }}</id>
+ <author>
+ <name>Facebook</name>
+ </author>
+
+ {% assign tutorial = site.data.tutorials[site.docs.first.series] %}
+ {% for item in tutorial.items %}
+ {% for docitem in site.docs %}
+ {% if docitem.pageid == item.id %}
+ {% assign doc = docitem %}
+ {% endif %}
+ {% endfor %}
+ <entry>
+ <title>{{ doc.partlabel }}: {{ doc.title }}</title>
+ <link href="{{ site.url }}{{ site.baseurl }}{{ doc.url }}"/>
+ <updated>{{ doc.date | date_to_xmlschema }}</updated>
+ <id>{{ site.url }}{{ site.baseurl }}{{ doc.url }}</id>
+ <content type="html">{{ doc.intro | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+</feed>

0 comments on commit 1a6a165

Please sign in to comment.