|
| 1 | +--- |
| 2 | +--- |
| 3 | +<?xml version="1.0" encoding="utf-8"?> |
| 4 | +<feed xmlns="http://www.w3.org/2005/Atom"> |
| 5 | + <generator uri="http://jekyllrb.com" version="{{ jekyll.version }}">Jekyll</generator> |
| 6 | + <link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" /> |
| 7 | + <link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" /> |
| 8 | + <updated>{{ site.time | date_to_xmlschema }}</updated> |
| 9 | + <id>{{ '/' | absolute_url | xml_escape }}/</id> |
| 10 | + |
| 11 | + {% if site.title %} |
| 12 | + <title type="html">{{ site.title | xml_escape }}</title> |
| 13 | + {% elsif site.name %} |
| 14 | + <title type="html">{{ site.name | xml_escape }}</title> |
| 15 | + {% endif %} |
| 16 | + |
| 17 | + {% if site.description %} |
| 18 | + <subtitle>{{ site.description | xml_escape }}</subtitle> |
| 19 | + {% endif %} |
| 20 | + |
| 21 | + {% if site.author %} |
| 22 | + <author> |
| 23 | + <name>{{ site.author.name | default: site.author | xml_escape }}</name> |
| 24 | + {% if site.author.email %} |
| 25 | + <email>{{ site.author.email | xml_escape }}</email> |
| 26 | + {% endif %} |
| 27 | + {% if site.author.uri %} |
| 28 | + <uri>{{ site.author.uri | xml_escape }}</uri> |
| 29 | + {% endif %} |
| 30 | + </author> |
| 31 | + {% endif %} |
| 32 | + |
| 33 | + {% for post in site.posts limit: 10 %} |
| 34 | + {% unless post.draft %} |
| 35 | + <entry> |
| 36 | + <title type="html">{{ post.title | strip_html | normalize_whitespace | xml_escape }}</title> |
| 37 | + <link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" /> |
| 38 | + <published>{{ post.date | date_to_xmlschema }}</published> |
| 39 | + <updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated> |
| 40 | + <id>{{ post.id | absolute_url | xml_escape }}</id> |
| 41 | + <content type="html" xml:base="{{ site.url }}">{{ post.content | relative_urls_to_absolute | strip | xml_escape }}</content> |
| 42 | + |
| 43 | + {% assign post_author = post.author | default: post.authors[0] | default: site.author %} |
| 44 | + {% assign post_author = site.data.authors[post_author] | default: post_author %} |
| 45 | + {% assign post_author_email = post_author.email | default: nil %} |
| 46 | + {% assign post_author_uri = post_author.uri | default: nil %} |
| 47 | + {% assign post_author_name = post_author.name | default: post_author %} |
| 48 | + |
| 49 | + {% if post_author %} |
| 50 | + <author> |
| 51 | + <name>{{ post_author_name | xml_escape }}</name> |
| 52 | + {% if post_author_email %} |
| 53 | + <email>{{ post_author_email | xml_escape }}</email> |
| 54 | + {% endif %} |
| 55 | + {% if post_author_uri %} |
| 56 | + <uri>{{ post_author_uri | xml_escape }}</uri> |
| 57 | + {% endif %} |
| 58 | + </author> |
| 59 | + {% endif %} |
| 60 | + |
| 61 | + {% if post.category %} |
| 62 | + <category term="{{ post.category | xml_escape }}" /> |
| 63 | + {% endif %} |
| 64 | + |
| 65 | + {% for tag in post.tags %} |
| 66 | + <category term="{{ tag | xml_escape }}" /> |
| 67 | + {% endfor %} |
| 68 | + |
| 69 | + {% if post.excerpt and post.excerpt != empty %} |
| 70 | + <summary type="html">{{ post.excerpt | strip_html | normalize_whitespace | xml_escape }}</summary> |
| 71 | + {% endif %} |
| 72 | + </entry> |
| 73 | + {% endunless %} |
| 74 | + {% endfor %} |
| 75 | +</feed> |
0 commit comments