This repository has been archived by the owner on Nov 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
mailchimp-feed.xml
51 lines (50 loc) · 2.26 KB
/
mailchimp-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
39
40
41
42
43
44
45
46
47
48
49
50
51
---
layout: null
permalink: /mailchimp-feed.xml
exclude_from_search: true
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Digital Transformation Agency</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ '/' | append: page.path | 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 posts = site.empty-array %}
{% for post in site.posts %}
{% unless post.tag == "ict-procurement" %}
{% unless post.skip_feed == true %}
{% assign posts = posts| push: post %}
{% endunless %}
{% endunless %}
{% endfor %}
{% for post in posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
{%if post.searchexcerpt %}
<description>{{ post.searchexcerpt | markdownify | strip_html | xml_escape }}</description>
{% else %}
<description>{{ post.content | markdownify | strip_html | truncatewords:50 | xml_escape }}</description>
{% endif %}
<content:encoded>{{ post.searchexcerpt | markdownify | xml_escape }}{{ post.content | xml_escape }}</content:encoded>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
{% if post.author %}
<dc:creator>{{ post.author }}</dc:creator>
{% else %}
<dc:creator>{{ site.title }}</dc:creator>
{% endif %}
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
{% if post.hero-image %}
<media:content url="{{ site.url }}{{ post.hero-image }}" medium="image" />
{% endif %}
</item>
{% endfor %}
</channel>
</rss>