|
| 1 | +--- |
| 2 | +layout: none |
| 3 | +--- |
| 4 | +<?xml version="1.0" encoding="utf-8"?> |
| 5 | + |
| 6 | +<feed xmlns="http://www.w3.org/2005/Atom" {% if page.lang %}xml:lang="{{ page.lang }}"{% endif %}> |
| 7 | + <generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator> |
| 8 | + <title>{{ page.title | xml_escape }} | {{ site.title }}</title> |
| 9 | + <link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" /> |
| 10 | + <link href="{{ site.url }}" /> |
| 11 | + <id>{{ page.url | absolute_url | xml_escape }}</id> |
| 12 | + <updated>{{ site.time | date_to_xmlschema}}</updated> |
| 13 | + |
| 14 | + {% assign posts = site.posts | sort: "date" | reverse %} |
| 15 | + {% if page.lang %} |
| 16 | + {% assign posts = posts | where: "lang", page.lang %} |
| 17 | + {% endif %} |
| 18 | + {% for post in posts limit: 10 %} |
| 19 | + <entry xml:lang="{{ post.lang }}"> |
| 20 | + {% assign post_title = post.title | strip_html | normalize_whitespace | xml_escape %} |
| 21 | + <title>{{ post_title }}</title> |
| 22 | + <link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post_title }}"/> |
| 23 | + <published>{{ post.date | date_to_xmlschema }}</published> |
| 24 | + {% assign post_updated = post.last_modified_at | default: post.date %} |
| 25 | + <updated>{{ post_updated | date_to_xmlschema }}</updated> |
| 26 | + <id>{{ post.id | absolute_url | xml_escape }}</id> |
| 27 | + |
| 28 | + <content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}"> |
| 29 | + <![CDATA[{{ post.content | strip }}]]> |
| 30 | + </content> |
| 31 | + <summary type="html"> |
| 32 | + <![CDATA[{{ post.excerpt | strip_html | normalize_whitespace }}]]> |
| 33 | + </summary> |
| 34 | + <author> |
| 35 | + <name>{{ post.author.name }}</name> |
| 36 | + <uri>{{ post.author.url | xml_escape }}</uri> |
| 37 | + </author> |
| 38 | + </entry> |
| 39 | + {% endfor %} |
| 40 | +</feed> |
0 commit comments