Freddy Ewald Personal Website

Jekyll JSONFeed installed

I finally followed through with my plan from 2017 to install JSONFeed for this blog.

Valid feed validated on

Although I haven’t seen any breakthrough of this as a technology, I’ll keep it running next to the XML feed and will monitor all requests. This feed is compliant to the standard.

To get it to work, I had to adjust my template a little bit and also use jsonify from the liquid template language. Overall, it was easier to get an XML feed to work as JSON is very picky about escaping of double quotes and other special HTML characters. My template for Jekyll is saved as feed.json and looks as follows:

layout: null
    "version": "",
    "title": {{ site.title | jsonify }},
    "description": {{ site.description | strip_newlines | jsonify }},
    "language": "{{ site.language }}",
    "home_page_url": "{{ site.url }}{{ site.baseurl }}",
    "feed_url": "{{ site.url }}{{ site.baseurl }}/feed.json",
    "items": [
        {% for post in site.posts limit:100 %}
            "id": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
            "url": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
            "title": {{ post.title | jsonify }},
            "content_html": {{ post.content | strip_newlines | jsonify }},
            "date_published": "{{ | date_to_xmlschema }}"
        }{% unless forloop.last %},{% endunless %}
        {% endfor %}

I am I started this blog in late 2015, mostly as a digital business card when I bought this domain. Soon after, I started writing down observations and things that I learned during my work or free time. I am deeply interested in all aspects around software, the internet and teamwork. You can find more information about me on the about page.