-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.xml
More file actions
38 lines (38 loc) · 2.07 KB
/
Copy pathfeed.xml
File metadata and controls
38 lines (38 loc) · 2.07 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
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<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>
<title type="html">{{ site.title | smartify | xml_escape }}</title>
<subtitle>{{ site.description | xml_escape }}</subtitle>
<author>
<name>{{ site.author.name | default: site.author | xml_escape }}</name>
</author>
{% for post in site.posts limit: 20 %}
<entry>
<title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
<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>
<author>
<name>{{ post.author | default: site.author.name | default: site.author | xml_escape }}</name>
</author>
{% for tag in post.tags %}
<category term="{{ tag | xml_escape }}" />
{% endfor %}
<summary type="html">{{ post.excerpt | strip_html | normalize_whitespace | xml_escape }}</summary>
{% assign feed_image = post.image | default: post.header.og_image | default: site.og_image %}
{% if feed_image %}
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ feed_image | absolute_url | xml_escape }}" />
<media:content medium="image" url="{{ feed_image | absolute_url | xml_escape }}" xmlns:media="http://search.yahoo.com/mrss/" />
{% endif %}
<dc:hashtags>{% for tag in post.tags %}#{{ tag | replace: '-', '' }}{% unless forloop.last %}, {% endunless %}{% endfor %}</dc:hashtags>
</entry>
{% endfor %}
</feed>