From 6798d5ffcafc44d36b7cf9c80077b3107b2afc44 Mon Sep 17 00:00:00 2001 From: rottenwheel <92872541+rottenwheel@users.noreply.github.com> Date: Thu, 29 Jun 2023 22:42:36 +0000 Subject: [PATCH] add: missing if, unless --- atom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atom.xml b/atom.xml index 0806865..d43f4a8 100644 --- a/atom.xml +++ b/atom.xml @@ -18,6 +18,11 @@ layout: null {% for post in site.posts limit: 10 %} + {% assign post_image = post.image.path | default: post.image %} + {% if post_image %} + {% unless post_image contains "://" %} + {% assign post_image = post_image | absolute_url %} + {% endunless %} {{ post.title }}