mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
47 lines
2.0 KiB
XML
47 lines
2.0 KiB
XML
---
|
|
layout: none
|
|
---
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<rss version="2.0"
|
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
|
>
|
|
<channel>
|
|
<title>{{ site.feed_title | xml_escape }}</title>
|
|
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
|
|
<sy:updatePeriod>{{ site.feed.update_period | default: "daily" | xml_escape }}</sy:updatePeriod>
|
|
<sy:updateFrequency>{{ site.feed.update_frequency | default: 1 | xml_escape }}</sy:updateFrequency>
|
|
<link>{{ site.url }}</link>
|
|
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
|
|
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
|
<language>en-gb</language>
|
|
{% assign feed_items = site.feed.post_limit | default: 10 %}
|
|
{% for post in site.posts limit:feed_items %}
|
|
{% if post.draft == false or jekyll.environment == "development" %}
|
|
<item>
|
|
<title>{{ post.title | xml_escape }}</title>
|
|
<dc:creator>Tom Hodson</dc:creator>
|
|
{% if post.excerpt %}
|
|
<description>
|
|
{% if post.social_image %}
|
|
<![CDATA[<img src="{{ site.url }}{{ post.social_image }}" alt="{{ post.alt }}"/><br><br>]]>
|
|
{% endif %}
|
|
{{ post.content | xml_escape }}
|
|
</description>
|
|
{% else %}
|
|
<description>
|
|
{{ post.content | xml_escape }}
|
|
</description>
|
|
{% endif %}
|
|
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
|
<link>{{ site.url }}{{ post.url }}</link>
|
|
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
|
<!-- {% if post.social_image %}
|
|
<media:thumbnail width="250" height="250" url="{{ site.url }}{{ post.social_image }}"/>
|
|
{% endif %} -->
|
|
</item>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</channel>
|
|
</rss> |