From 9a82ddc01f67af0fd6010b3ccd172832fc39c52c Mon Sep 17 00:00:00 2001
From: rottenwheel <92872541+rottenwheel@users.noreply.github.com>
Date: Sat, 15 Jul 2023 04:58:57 +0000
Subject: [PATCH] test
---
atom.xml | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/atom.xml b/atom.xml
index c83467d..1b231d0 100644
--- a/atom.xml
+++ b/atom.xml
@@ -18,13 +18,20 @@ layout: null
{% for post in site.posts limit: 10 %}
-
{{ post.title }}
{{ site.url }}{{ post.id }}
{{ post.date | date_to_xmlschema }}
{{ post.content | xml_escape | truncatewords:50 }}
-
+ {% assign post_image = post.image.path | default: post.image %}
+ {% if post_image %}
+ {% unless post_image contains "://" %}
+ {% assign post_image = post_image | absolute_url %}
+ {% endunless %}
+
+
+ {% endif %}
+
{% endfor %}