mirror of
https://github.com/rottenwheel/revuo-weekly.git
synced 2024-12-23 19:59:30 +00:00
add: missing if, unless
This commit is contained in:
parent
4620af5530
commit
6798d5ffca
1 changed files with 5 additions and 0 deletions
5
atom.xml
5
atom.xml
|
@ -18,6 +18,11 @@ layout: null
|
||||||
{% for post in site.posts limit: 10 %}
|
{% for post in site.posts limit: 10 %}
|
||||||
|
|
||||||
<entry>
|
<entry>
|
||||||
|
{% assign post_image = post.image.path | default: post.image %}
|
||||||
|
{% if post_image %}
|
||||||
|
{% unless post_image contains "://" %}
|
||||||
|
{% assign post_image = post_image | absolute_url %}
|
||||||
|
{% endunless %}
|
||||||
<media:thumbnail xmlns:media="https://revuo-xmr.com/atom.xml" url="{{ post_image | xml_escape }}" />
|
<media:thumbnail xmlns:media="https://revuo-xmr.com/atom.xml" url="{{ post_image | xml_escape }}" />
|
||||||
<media:content medium="image" url="{{ post_image | xml_escape }}" xmlns:media="https://revuo-xmr.com/atom.xml" />
|
<media:content medium="image" url="{{ post_image | xml_escape }}" xmlns:media="https://revuo-xmr.com/atom.xml" />
|
||||||
<title>{{ post.title }}</title>
|
<title>{{ post.title }}</title>
|
||||||
|
|
Loading…
Reference in a new issue