1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-07-01 06:02:08 +02:00

resized images in feeds

This commit is contained in:
Matthias Kretschmann 2017-07-23 21:56:08 +02:00
parent 2b3d5c5ea1
commit 20d5640490
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ layout: null
{% if post.linkurl %}"external_url": "{{ post.linkurl }}",{% endif %}
"author": "{{ site.author.name }}",
"summary": {{ post.excerpt | smartify | jsonify }},
{% if post.image %}"image": "{{ site.url }}/media/{{ post.image }}",{% endif %}
{% if post.image %}"image": "{{ site.media_url }}/w_940/media/{{ post.image }}",{% endif %}
"content_html": {{ post.content | jsonify }}
}{% unless forloop.last == true %},{% endunless %}
{% endfor %}

View File

@ -58,7 +58,7 @@ redirect_from:
<id>{{ post.id | prepend: site.url | xml_escape }}</id>
<content type="html" xml:base="{{ post.url | xml_escape }}">
{% if post.image %}
&lt;img src=&quot;{{ site.url }}/media/{{ post.image }}&quot; /&gt;
&lt;img src=&quot;{{ site.media_url }}/w_940/media/{{ post.image }}&quot; /&gt;
{% endif %}
{{ post.content | markdownify | xml_escape }}