summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--feed.json58
-rw-r--r--feed.xslt.xml2
2 files changed, 2 insertions, 58 deletions
diff --git a/feed.json b/feed.json
index f21c783..48503b7 100644
--- a/feed.json
+++ b/feed.json
@@ -1,59 +1,3 @@
 ---
 ---
-{
-    "version": "https://jsonfeed.org/version/1",
-    "title": "{{ site.title | xml_escape }}",
-    "home_page_url": "{{ "/" | absolute_url }}",
-    "feed_url": "{{ "/feed.json" | absolute_url }}",
-    "description": {{ site.description | jsonify }},
-    "favicon": "{{ "/favicon.ico" | absolute_url }}",
-    "expired": false,
-    {% if site.author %}
-    "author": {% if site.author.name %} {
-        "name": "{{ site.author.name }}",
-        "url": {% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},
-        "avatar": {% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}
-    },{% else %}"{{ site.author }}",{% endif %}
-    {% endif %}
-    "items": [
-    {% for post in site.posts limit:10 %}
-        {
-            "id": "{{ post.url | absolute_url }}",
-            "title": {{ post.title | jsonify }},
-            "summary": {{ post.excerpt | strip_html | jsonify }},
-            "content_text": {{ post.content | strip_html | strip_newlines | jsonify }},
-            "content_html": {{ post.content | strip_newlines | jsonify }},
-            "url": "{{ post.url | absolute_url }}",
-            {% if post.image.size > 1 %}"image": {{ post.image | jsonify }},{% endif %}
-            {% if post.link.size > 1 %}"external_url": "{{ post.link }}",{% endif %}
-            {% if post.banner.size > 1 %}"banner_image": "{{ post.banner }}",{% endif %}
-            {% if post.tags.size > 1 %}"tags": {{ post.tags | jsonify }},{% endif %}
-            {% if post.enclosure.size > 1 %}"attachments": [
-            {
-              "url": "{{ post.enclosure }}",
-              "mime_type": "{{ post.enclosure_type }}",
-              "size_in_bytes": "{{ post.enclosure_length }}"
-            },{% endif %}
-            "date_published": "{{ post.date | date_to_xmlschema }}",
-            "date_modified": "{{ post.date | date_to_xmlschema }}",
-            {% if post.author %}
-                "author": {% if post.author.name %} {
-                "name": "{{ post.author.name }}",
-                "url": {% if post.author.url %}"{{ post.author.url }}"{% else %}null{% endif %},
-                "avatar": {% if post.author.avatar %}"{{ post.author.avatar }}"{% else %}null{% endif %}
-                }
-                {% else %}"{{ post.author }}"{% endif %}
-            {% else %}
-                "author": {% if site.author.name %} {
-                "name": "{{ site.author.name }}",
-                "url": {% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},
-                "avatar": {% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}
-                }
-                {% else %}
-                "{{ site.author }}"
-                {% endif %}
-            {% endif %}
-        }{% if forloop.last == false %},{% endif %}
-    {% endfor %}
-    ]
-}
\ No newline at end of file
+{"version":"https://jsonfeed.org/version/1","title":"{{ site.title | xml_escape }}","home_page_url":"{{ "/" | absolute_url }}","feed_url":"{{ "/feed.json" | absolute_url }}","description":{{ site.description | jsonify }},"favicon":"{{ "/favicon.ico" | absolute_url }}","expired":false,{% if site.author %}"author":{% if site.author.name %}{"name":"{{ site.author.name }}","url":{% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},"avatar":{% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}},{% else %}{"name":"{{ site.author }}"},{% endif %}{% endif %}"items":[{% for post in site.posts limit:10 %}{"id":"{{ post.url | absolute_url }}","title":{{ post.title | jsonify }},"summary":{{ post.excerpt | strip_html | jsonify }},"content_text":{{ post.content | strip_html | strip_newlines | jsonify }},"content_html":{{ post.content | strip_newlines | jsonify }},"url":"{{ post.url | absolute_url }}",{% if post.image.size > 1 %}"image":{{ post.image | jsonify }},{% endif %}{% if post.link.size > 1 %}"external_url":"{{ post.link }}",{% endif %}{% if post.banner.size > 1 %}"banner_image":"{{ post.banner }}",{% endif %}{% if post.tags.size > 1 %}"tags":{{ post.tags | jsonify }},{% endif %}{% if post.enclosure.size > 1 %}"attachments":[{  "url":"{{ post.enclosure }}",  "mime_type":"{{ post.enclosure_type }}",  "size_in_bytes":"{{ post.enclosure_length }}"}],{% endif %}"date_published":"{{ post.date | date_to_xmlschema }}","date_modified":"{{ post.date | date_to_xmlschema }}",{% if post.author %}"author":{% if post.author.name %} {"name":"{{ post.author.name }}","url":{% if post.author.url %}"{{ post.author.url }}"{% else %}null{% endif %},"avatar":{% if post.author.avatar %}"{{ post.author.avatar }}"{% else %}null{% endif %}}{% else %}"{{ post.author }}"{% endif %}{% else %}"author":{% if site.author.name %} {"name":"{{ site.author.name }}","url":{% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},"avatar":{% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}}{% else %}{"name":"{{ site.author }}"}{% endif %}{% endif %}}{% if forloop.last == false %},{% endif %}{% endfor %}]}
\ No newline at end of file
diff --git a/feed.xslt.xml b/feed.xslt.xml
index 3c05f87..0f80479 100644
--- a/feed.xslt.xml
+++ b/feed.xslt.xml
@@ -30,7 +30,7 @@ https://nicolas-hoizey.com/feeds/all.xml
       <body>
         <nav class="container">
           <p class="about">
-            <strong>This is a web feed,</strong> also known as an Atom feed.<br /><strong>Subscribe</strong> by copying the URL from the address bar into your newsreader.
+            <strong>This is a web feed,</strong> also known as an RSS or Atom feed.<br /><strong>Subscribe</strong> by copying the URL from the address bar into your newsreader.
           </p>
           <p class="gray">
             Visit <a href="https://aboutfeeds.com">About Feeds</a> to get started with newsreaders and subscribing. It’s free.