Add banner images to RSS feed
This commit is contained in:
parent
02203c187f
commit
e4b7ed22cb
2 changed files with 18 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
|||
title: OpenNeo Blog
|
||||
url: https://blog.openneo.net/
|
||||
url: https://blog.openneo.net
|
||||
description: For Dress to Impress, and uhh maybe other things later!
|
||||
|
|
19
feed.xml
19
feed.xml
|
@ -1,22 +1,37 @@
|
|||
---
|
||||
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 }}</title>
|
||||
<link>{{ site.url }}</link>
|
||||
<atom:link href="{{ page.url | prepend: site.url }}" rel="self" type="application/rss+xml" />
|
||||
<atom:link
|
||||
href="{{ page.url | prepend: site.url }}"
|
||||
rel="self"
|
||||
type="application/rss+xml" />
|
||||
<description>{{ site.description }}</description>
|
||||
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
||||
<language>en-us</language>
|
||||
{% for post in site.posts %}
|
||||
<item>
|
||||
<title>{{ post.title }}</title>
|
||||
<link>
|
||||
{{ post.url | prepend: site.url }}
|
||||
</link>
|
||||
{% if post.author %}
|
||||
<author>{{ post.author }}</author>
|
||||
{% endif %}
|
||||
<description>
|
||||
{% if post.banner %}
|
||||
<![CDATA[
|
||||
<img
|
||||
src="{{ post.banner.url }}"
|
||||
width="{{ post.banner.width }}"
|
||||
height="{{ post.banner.height }}"
|
||||
/>
|
||||
]]>
|
||||
{% endif %}
|
||||
{{ post.content | escape }}
|
||||
</description>
|
||||
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
||||
|
|
Loading…
Reference in a new issue