mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-07 12:06:26 +00:00
corrected the out of loop post.content
This commit is contained in:
parent
987f541013
commit
e23ff65532
1 changed files with 8 additions and 3 deletions
11
feed.xml
11
feed.xml
|
@ -3,12 +3,12 @@ layout: none
|
|||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
|
||||
{% assign add_protocol = false %}
|
||||
{% if site.url != '' and site.url | split: '/' | first != 'http:' and site.url | split: '/' | first != 'https:' %}
|
||||
{% assign site_url = site.url | prepend: 'http:' %}
|
||||
{% assign post_content = post.content | xml_escape | replace: site.url, url %}
|
||||
{% assign add_protocol = true %}
|
||||
{% else %}
|
||||
{% assign site_url = site.url %}
|
||||
{% assign post_content = post.content | xml_escape %}
|
||||
{% endif %}
|
||||
<title type="text">{{ site.title }}</title>
|
||||
<generator uri="https://github.com/mojombo/jekyll">Jekyll</generator>
|
||||
|
@ -37,7 +37,12 @@ layout: none
|
|||
<email>{{ site.owner.email }}</email>
|
||||
</author>
|
||||
{% for tag in post.tags %}<category scheme="{{ site_url }}/tags/#{{ tag | uri_escape }}" term="{{ tag }}" />{% endfor %}
|
||||
<content type="html">{{ post_content }}
|
||||
<content type="html">
|
||||
{% if add_protocol %}
|
||||
{{ post.content | xml_escape | replace: site.url, site_url }}
|
||||
{% else %}
|
||||
{{ post.content | xml_escape }}
|
||||
{% endif %}
|
||||
<p><a href="{{ site_url }}{{ post.url }}">{{ post.title }}</a> was originally published by {{ site.owner.name }} at <a href="{{ site_url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p></content>
|
||||
</entry>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue