mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-21 17:47:10 +00:00
parse post.content and add the necessary protocol to images url
This commit is contained in:
parent
647d014836
commit
19f7de9bf1
1 changed files with 7 additions and 1 deletions
8
feed.xml
8
feed.xml
|
@ -4,6 +4,7 @@ layout: none
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
|
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
|
||||||
<title type="text">{{ site.title }}</title>
|
<title type="text">{{ site.title }}</title>
|
||||||
|
|
||||||
<generator uri="https://github.com/mojombo/jekyll">Jekyll</generator>
|
<generator uri="https://github.com/mojombo/jekyll">Jekyll</generator>
|
||||||
{% if site.url != '' and site.url | split: '/' | first != 'http:' and site.url | split: '/' | first != 'https:' %}{% assign url = site.url | prepend: 'http:' %}{% else %}{% assign url = site.url %}{% endif %}
|
{% if site.url != '' and site.url | split: '/' | first != 'http:' and site.url | split: '/' | first != 'https:' %}{% assign url = site.url | prepend: 'http:' %}{% else %}{% assign url = site.url %}{% endif %}
|
||||||
<link rel="self" type="application/atom+xml" href="{{ url }}/feed.xml" />
|
<link rel="self" type="application/atom+xml" href="{{ url }}/feed.xml" />
|
||||||
|
@ -31,7 +32,12 @@ layout: none
|
||||||
<email>{{ site.owner.email }}</email>
|
<email>{{ site.owner.email }}</email>
|
||||||
</author>
|
</author>
|
||||||
{% for tag in post.tags %}<category scheme="{{ url }}/tags/#{{ tag | uri_escape }}" term="{{ tag }}" />{% endfor %}
|
{% for tag in post.tags %}<category scheme="{{ url }}/tags/#{{ tag | uri_escape }}" term="{{ tag }}" />{% endfor %}
|
||||||
<content type="html">{{ post.content | xml_escape }}
|
<content type="html">
|
||||||
|
{% if site.url != '' and site.url | split: '/' | first != 'http:' and site.url | split: '/' | first != 'https:' %}
|
||||||
|
{{ post.content | xml_escape | replace: site.url, url }}
|
||||||
|
{% else %}
|
||||||
|
{{ post.content | xml_escape }}
|
||||||
|
{% endif %}
|
||||||
<p><a href="{{ url }}{{ post.url }}">{{ post.title }}</a> was originally published by {{ site.owner.name }} at <a href="{{ url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p></content>
|
<p><a href="{{ url }}{{ post.url }}">{{ post.title }}</a> was originally published by {{ site.owner.name }} at <a href="{{ url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p></content>
|
||||||
</entry>
|
</entry>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue