-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.xml
More file actions
38 lines (37 loc) · 2.26 KB
/
Copy pathfeed.xml
File metadata and controls
38 lines (37 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
layout: null
sitemap: false
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"{% if site.lang %} xml:lang="{{ site.lang }}"{% endif %}>
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
<link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ page.url | absolute_url | xml_escape }}</id>
{% if site.title %}<title type="html">{{ site.title | smartify | xml_escape }}</title>{% endif %}
{% if site.description %}<subtitle>{{ site.description | xml_escape }}</subtitle>{% endif %}
{% if site.author %}<author><name>{{ site.author.name | default: site.author | xml_escape }}</name></author>{% endif %}
{% assign posts_limit = site.feed.posts_limit | default: 10 %}
{% for post in site.posts limit: posts_limit %}
{% assign post_title = post.title | smartify | strip_html | normalize_whitespace | xml_escape %}
<entry>
<title type="html">{{ post_title }}</title>
{% if post.link %}
<link href="{{ post.link | xml_escape }}" rel="alternate" type="text/html" title="{{ post_title }}" />
<link href="{{ post.url | absolute_url }}" rel="related" type="text/html" title="Permalink" />
{% else %}
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post_title }}" />
{% endif %}
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
<id>{{ post.id | absolute_url | xml_escape }}</id>
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}"><![CDATA[{{ post.content | strip }}]]></content>
<author><name>{{ post.author | default: site.author | xml_escape }}</name></author>
{% for tag in post.tags %}<category term="{{ tag | xml_escape }}" />
{% endfor %}
{% assign post_summary = post.description | default: post.excerpt %}
{% if post_summary and post_summary != empty %}<summary type="html"><![CDATA[{{ post_summary | strip_html | normalize_whitespace }}]]></summary>{% endif %}
</entry>
{% endfor %}
</feed>