-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
55 lines (47 loc) · 1.88 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
45
46
47
48
49
50
51
52
53
54
55
---
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<link href="{{ site.url }}/atom.xml" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ site.title }}</name>
{% comment %}<email>{{ site.author.email }}</email>{% endcomment %}
</author>
{% for grant in site.grants %}
<entry>
<title>{{ grant.title | xml_escape }}</title>
<link href="{{ grant.url | absolute_url }}"/>
<updated>{{ grant.year | date_to_xmlschema }}</updated>
<id>{{ grant.path | slice: 8, 99 | replace: '.md', '' }}</id>
<content type="html">
<strong>Author:</strong> {{ grant.author | xml_escape }}
{% if grant.ORCID %}
ORCID: https://orcid.org/{{ grant.ORCID }}
{% endif %}
</ br>
<strong>Year:</strong> {{ grant.year }}
</ br>
<strong>Funding Source:</strong> {{ grant.funder | xml_escape }}{% if grant.program %} ({{ grant.program | xml_escape }}){% endif %}
</ br>
<strong>Funded:</strong> {% if grant.status == 'funded' or grant.status == 'partially funded' %}Yes{% elsif grant.status == 'unfunded' or grant.status == 'not funded' %}No{% else %}?{% endif %}
</ br>
<strong>Grant Documents:</strong>
<ul>
{% for link in grant.link %}
{% if grant.link_name %}
<li>{{ link | xml_escape }} ({{ grant.link_name[forloop.index0] }})</li>
{% elsif forloop.length == 1 %}
<li>{{ link | xml_escape }} (Proposal)</li>
{% else %}
<li>{{ link | xml_escape }} (Document {{ forloop.index }})</li>
{% endif %}
{% endfor %}
</ul>
</content>
</entry>
{% endfor %}
</feed>