-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrss-linkedin.xml
39 lines (39 loc) · 1.55 KB
/
rss-linkedin.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
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.name | xml_escape }} (LinkedIn)</title>
<image>
<url>http://latetotheparty.co/interface/icon-512.png</url>
<title>{{ site.name | xml_escape }}</title>
<link>{{ site.url }}</link>
</image>
<description>Snippets of Late to the Party for LinkedIn.</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/rss-linkedin.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:5 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description><![CDATA[ {{ post.title }}{% if post.snippet != undefined %} - {{ post.snippet }} {% endif %}
{% if post.image == undefined %}
<img src="{{ site.url }}/interface/icon-512.png">
{% else %}
{% if post.image contains 'http' %}
<img src="{{ post.image }}">
{% else %}
<img src="{{ site.url }}{{ post.image }}">
{% endif %}
{% endif %}
]]></description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
{% if post.reference %}
<link>{{ post.reference }}</link>
{% else %}
<link>{{ site.url }}{{ post.url }}.html</link>
{% endif %}
<guid isPermaLink="true">{{ site.url }}{{ post.url }}.html</guid>
</item>
{% endfor %}
</channel>
</rss>