diff options
| author | Valentin Popov <info@valentineus.link> | 2019-05-03 15:50:49 +0300 | 
|---|---|---|
| committer | Valentin Popov <info@valentineus.link> | 2019-05-03 15:50:49 +0300 | 
| commit | ad343f0d3d4213f473fb89b54e5c023699914500 (patch) | |
| tree | 4c9570cfde87792a15d5d86f0c9f636ae34b34d9 | |
| parent | 6d2efada8123a4138f97ccef54448b92876a2673 (diff) | |
| download | popov.link-ad343f0d3d4213f473fb89b54e5c023699914500.tar.xz popov.link-ad343f0d3d4213f473fb89b54e5c023699914500.zip | |
Fixed RSS whom 100% validated
Signed-off-by: Valentin Popov <info@valentineus.link>
| -rw-r--r-- | _pages/atom.xml | 72 | 
1 files changed, 32 insertions, 40 deletions
| diff --git a/_pages/atom.xml b/_pages/atom.xml index ef04f9e..db00cf3 100644 --- a/_pages/atom.xml +++ b/_pages/atom.xml @@ -1,54 +1,46 @@  --- +layout: null  permalink: "atom.xml" -layout: compress  title: "RSS"  ---  <?xml version="1.0" encoding="utf-8"?>  <feed xmlns="http://www.w3.org/2005/Atom"> -  <!-- Identifiers and references --> -  <link href="{{ site.rss | absolute_url | xml_escape }}" rel="self" type="application/atom+xml" /> -  <link href="{{ site.url | xml_escape }}" rel="alternate" type="text/html" /> -  <id>{{ site.url | strip_newlines | strip_html | strip | normalize_whitespace | slugify | xml_escape }}</id> - -  <!-- Description and name --> -  <icon>{{ "/assets/apple-touch-icon.png" | absolute_url | xml_escape }}</icon> -  <title>{{ site.title | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</title> -  <subtitle>{{ site.description | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</subtitle> -  <updated>{{ site.time | date_to_xmlschema }}</updated> - -  <!-- Author --> -  <author> -    <email>{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</email> -    <name>{{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</name> -    <uri>{{ site.author.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</uri> -  </author> - -  {% for item in site.posts %} -    <!-- Full size record --> -    <entry> -      <!-- Identifiers and references --> -      <link href="{{ item.url | absolute_url | xml_escape }}" rel="alternate" type="text/html" /> -      <id>{{ item.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify | xml_escape }}</id> - -      <!-- Description and name --> -      <title>{{ item.title | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</title> -      <summary>{{ item.description | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</summary> -      <updated>{{ item.latest_update | default: item.date | date_to_xmlschema }}</updated> -      <published>{{ item.date | date_to_xmlschema }}</published> - -      <!-- Author --> -      <author> +    <link href="{{ site.rss | absolute_url | xml_escape }}" rel="self" type="application/atom+xml"/> +    <link href="{{ site.url | xml_escape }}" rel="alternate" type="text/html"/> +    <id>{{ site.url | absolute_url | xml_escape }}</id> + +    <icon>{{ "/assets/apple-touch-icon.png" | absolute_url | xml_escape }}</icon> +    <title>{{ site.title | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</title> +    <subtitle>{{ site.description | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</subtitle> +    <updated>{{ site.time | date_to_xmlschema }}</updated> + +    <author>          <email>{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</email>          <name>{{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</name>          <uri>{{ site.author.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</uri> -      </author> +    </author> -      <!-- Content --> -      <content type="html" xml:base="{{ item.url | absolute_url | xml_escape }}"> -        {{ item.content | strip_newlines | strip | xml_escape }} -      </content> +    {% for item in site.posts %} +    <entry> +        <link href="{{ item.url | absolute_url | xml_escape }}" rel="alternate" type="text/html"/> +        <id>{{ item.url | absolute_url | xml_escape }}</id> + +        <title>{{ item.title | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</title> +        <summary>{{ item.description | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</summary> +        <updated>{{ item.latest_update | default: item.date | date_to_xmlschema }}</updated> +        <published>{{ item.date | date_to_xmlschema }}</published> + +        <author> +            <email>{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</email> +            <name>{{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</name> +            <uri>{{ site.author.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</uri> +        </author> + +        <content type="html" xml:base="{{ item.url | absolute_url | xml_escape }}"> +            {{ item.content | strip_newlines | strip | xml_escape }} +        </content>      </entry> -  {% endfor %} +    {% endfor %}  </feed> | 
