-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathatom.xml
More file actions
41 lines (40 loc) · 1.4 KB
/
atom.xml
File metadata and controls
41 lines (40 loc) · 1.4 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
39
40
41
---
layout: none
---
<?xml version="1.0" encoding="utf-8"?>{% assign author = site.data.authors["bcodmo"] %}
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<link href="https://blog.bco-dmo.org/atom.xml" rel="self"/>
<link href="{{ site.url }}"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ author.name }}</name>
<email>{{ author.email }}</email>
</author>
{% assign posts = site.posts | where: "published", true %}
{% for post in site.posts %}
{% capture url %}{{ site.url }}{{ post.url }}{% endcapture %}
<entry>
<id>{{ url }}</id>
<title>{{ post.title }}</title>
<link href="{{ url }}"/>
<published>{{ post.date | date_to_xmlschema }}</published>
{% assign updated = post.lastModified | default: post.date %}
<updated>{{ updated | date_to_xmlschema }}</updated>
{% if post.description %}
<summary type="html">{{ post.description | xml_escape }}</summary>
{% endif %}
<content type="html">{{ post.content | xml_escape }}</content>
{% if post.category %}
<category term="{{ post.category }}"/>
{% endif %}
{% for author in post.author %}
<author>
{% assign author = site.data.authors[author] %}
<name>{{ author.name }}</name>
</author>
{% endfor %}
</entry>
{% endfor %}
</feed>