diff options
Diffstat (limited to '_includes/feed.atom')
-rw-r--r-- | _includes/feed.atom | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/_includes/feed.atom b/_includes/feed.atom deleted file mode 100644 index 6ea84b3..0000000 --- a/_includes/feed.atom +++ /dev/null @@ -1,90 +0,0 @@ -{% assign - is_audio=site.atom[include.kind].audio -%}{% assign - is_video=site.atom[include.kind].video -%}<?xml version="1.0" encoding="UTF-8"?> - {% if is_audio or is_video %} - <rss version="2.0" - xmlns:atom="http://www.w3.org/2005/Atom"> - <channel> - <title>{{ site.title | smartify | xml_escape }}</title> - <description>{{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }}</description> - <link>{{ page.url | absolute_url | xml_escape }}</link> - <atom:link href="{{ page.url | absolute_url | xml_escape }}" rel="self" type="application/atom+xml" /> - <language>{{ include.lang }}</language> - <copyright>CC BY-SA 4.0</copyright> - - <lastBuildDate>{{ site.time | date_to_xmlschema }}</lastBuildDate> - <docs>http://blogs.law.harvard.edu/tech/rss</docs> - - <author>{{ site.author.name | xml_escape }} 3</author> - <webMaster>{{ site.author.email | xml_escape }} ({{ site.author.name | xml_escape }})</webMaster> - <image> - <url>{{ '/' | absolute_url | xml_escape }}static/lord-favicon.png</url> - <link>{{ page.url | absolute_url | xml_escape }}</link> - <title>{{ site.t[include.kind].feed.title[include.lang] }}</title> - </image> - {% else %} - <feed - xmlns="http://www.w3.org/2005/Atom" - xmlns:content="http://purl.org/rss/1.0/modules/content/" - xml:lang="{{ include.lang }}"> - <link href="{{ page.url | absolute_url | xml_escape }}" rel="self" type="application/atom+xml" /> - <link href="{{ '/' | absolute_url | xml_escape }}" rel="alternate" type="text/html" hreflang="{{ include.lang }}" /> - <title>{{ site.title | xml_escape }}</title> - <subtitle>{{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }}</subtitle> - <id>{{ page.url | absolute_url | xml_escape }}</id> - <updated>{{ site.time | date_to_xmlschema }}</updated> - - <author> - <name>{{ site.author.name | xml_escape }}</name> - <email>{{ site.author.email | xml_escape }}</email> - </author> - {% endif %} - - {% assign entries = include.entries | where:"lang", include.lang | has_category:include.categories_filter | sort: "date" | reverse %} - {% for entry in entries %} - {% if is_audio or is_video %} - <item> - <title>{{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title> - <link>{{ entry.url | absolute_url | xml_escape }}</link> - <guid>{{ entry.url | absolute_url | xml_escape }}</guid> - <description xml:base="{{ entry.url | absolute_url | xml_escape }}"> - {{ entry.content | strip | xml_escape }} - </description> - {% if is_audio %} - <enclosure url="{{ entry.url | replace: ".html", ".ogg" | absolute_url | xml_escape }}" type="audio/ogg" /> - {% elsif is_video %} - <enclosure url="{{ entry.url | replace: ".html", ".webm.torrent" | absolute_url | xml_escape }}" type="application/x-bittorrent" /> - {% endif %} - <category>EuAndreh</category> - <pubDate>{{ entry.date | date_to_xmlschema }}</pubDate> - </item> - {% else %} - <entry xml:lang="{{ entry.lang }}"> - <title type="html">{{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title> - <link href="{{ entry.url | absolute_url | xml_escape }}" rel="alternate" type="text/html" title="{{ entry.title | xml_escape }}" /> - <published>{{ entry.date | date_to_xmlschema }}</published> - <updated>{{ entry.updated_at | default: entry.date | date_to_xmlschema }}</updated> - <id>{{ entry.url | absolute_url | xml_escape }}</id> - - <content type="html" xml:base="{{ entry.url | absolute_url | xml_escape }}"> - {{ entry.content | strip | xml_escape }} - </content> - - <author> - <name>{{ site.author.name | xml_escape }}</name> - <email>{{ site.author.email | xml_escape }}</email> - </author> - - <summary type="html">{{ entry.excerpt | strip_html | normalize_whitespace | xml_escape }}</summary> - </entry> - {% endif %} - {% endfor %} - -{% if is_audio or is_video %} - </channel> - </rss> -{% else %} - </feed> -{% endif %} |