-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml
38 lines (38 loc) · 1.86 KB
/
feed.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
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% assign letters = site.data.data.letters | sort: "date" | reverse %}
{% for a in letters limit:20 %}{% if a.path %}
<item>
<title>{{ a.typeface | xml_escape }}</title>
<description>
{% capture designers %}
{% if a.designers.size == 2 %}
{{ a.designers[0] }} and {{ a.designers[1] }}
{% else %}
{% for d in a.designers %}{% if d == a.designers.last and d != a.designers.first %}, and {% elsif d != a.designers.first %}, {% endif %}{{ d }}{% endfor %}
{% endif %}
{% endcapture %}
There is a new letter “a” {% if a.typeface %}from the typeface {{ a.typeface }} {% endif %}by {{ designers | strip | xml_escape }}!<br>
{% if a.url %}
See it at: <a href="{{ a.url }}">{% if a.publisher %}{{ a.publisher }}{% else %}here{% endif %}</a>
{% endif %}
</description>
<pubDate>{{ a.date | date_to_rfc822 }}</pubDate>
<link>{{ site.url }}</link>
<guid isPermaLink="true">{{ site.url }}#{{ a.typeface }}</guid>
<category>Latin</category>
</item>
{% endif %}{% endfor %}
</channel>
</rss>