This repository has been archived by the owner on Mar 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
44 lines (41 loc) · 1.67 KB
/
atom.xml
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
39
40
41
42
43
44
---
layout: null
---
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.theme_settings.title | xml_escape }}</title>
<subtitle type="html">{{ site.theme_settings.description }}</subtitle>
<link href="{{ page.url | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/atom+xml"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/</id>
<author>
<name>{{ site.theme_settings.name }}</name>
<email>{{ site.theme_settings.email_address }}</email>
</author>
{% for post in site.posts limit:15 %}
<entry>
<id>{{ post.id | prepend: site.baseurl | prepend: site.url }}</id>
<link type="text/html" rel="alternate" href="{{ post.url | prepend: site.baseurl | prepend: site.url }}"/>
<title>{{ post.title }}</title>
<published>{{ post.date | date_to_xmlschema }}</published>
{% if post.last_modified_at %}
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
{% endif %}
<author>
<name>{{ site.authors[post.author].name }}</name>
<uri>{{ site.authors[post.author].uri }}</uri>
<email>{{ site.authors[post.author].email }}</email>
</author>
<rights>Copyright (c) {{ post.date | date: "%Y" }}, {{ site.theme_settings.legal_name }}</rights>
<content type="html">
{% if post.feature-img %}
<![CDATA[
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">
<img {% if post.feature_img_alt_txt %}alt="{{ post.feature_img_alt_txt }}"{% endif %} src="{{ site.baseurl }}/{{ page.feature-img }}" />
</a>
]]>{% endif %}
{{ post.content | xml_escape }}
</content>
</entry>
{% endfor %}
</feed>