Skip to content

Commit

Permalink
Fix img in feed
Browse files Browse the repository at this point in the history
  • Loading branch information
kizu committed Feb 10, 2014
1 parent c7ce018 commit 9c5a2ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion feeds/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ permalink: /feed.xml
<id>{{ site.production_url }}{{ post.id }}</id>
{% capture link_handles_input %}{{ processed_content }}{% endcapture %}{% include link_handles.html %}
{% capture demo_handles_link %}{{ post.url }}{% endcapture %}{% capture demo_handles_input %}{{ link_handles_result }}{% endcapture %}{% include demo_handles.html %}
<content type="html">{{ demo_handles_result | xml_escape }}</content>
{% capture replace_img %}src="/{% endcapture %}
{% capture replace_img_with %}src="{{ site.production_url }}/{% endcapture %}
<content type="html">{{ demo_handles_result | replace:replace_img,replace_img_with | xml_escape }}</content>
</entry>
{% endunless %}{% endunless %}{% endfor %}
</feed>
4 changes: 3 additions & 1 deletion feeds/feed_en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ permalink: /en/feed.xml
<id>{{ site.production_url }}{{ post.id }}</id>
{% capture link_handles_input %}{{ processed_content }}{% endcapture %}{% include link_handles.html %}
{% capture demo_handles_link %}{{ post.url }}{% endcapture %}{% capture demo_handles_input %}{{ link_handles_result }}{% endcapture %}{% include demo_handles.html %}
<content type="html">{{ demo_handles_result | xml_escape }}</content>
{% capture replace_img %}src="/{% endcapture %}
{% capture replace_img_with %}src="{{ site.production_url }}/{% endcapture %}
<content type="html">{{ demo_handles_result | replace:replace_img,replace_img_with | xml_escape }}</content>
</entry>
{% endunless %}{% endif %}{% endfor %}
</feed>

0 comments on commit 9c5a2ff

Please sign in to comment.