{% assign add_protocol = false %}
{% assign protocol = site.url | split: '/' | first %}
{% if site.url != '' and protocol != 'http:' and protocol != 'https:' %}
{% assign site_url = site.url | prepend: 'http:' %}
{% assign add_protocol = true %}
{% else %}
{% assign site_url = site.url %}
{% endif %}
{{ site.title }}
{{ site.time | date_to_xmlschema }}
{{ site_url }}/
{{ site.owner.name }}
{{ site_url }}/
{{ site.owner.email }}
{% for post in site.posts limit:20 %}
{{ site_url }}{{ post.id }}
{% if post.modified %}{{ post.date | date_to_xmlschema }}
{{ post.modified }}T00:00:00-00:00
{% else %}{{ post.date | date_to_xmlschema }}
{{ post.date | date_to_xmlschema }}{% endif %}
{{ site.owner.name }}
{{ site_url }}
{{ site.owner.email }}
{% for tag in post.tags %}{% endfor %}
{% 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>
{% endfor %}