From 633fec5ea5de690aadfc0064cef67147ae4c79aa Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 14 Mar 2023 09:15:46 -0700 Subject: [PATCH] add json feed --- src/feed.11ty.liquid | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/feed.11ty.liquid diff --git a/src/feed.11ty.liquid b/src/feed.11ty.liquid new file mode 100644 index 00000000..d0d24ff5 --- /dev/null +++ b/src/feed.11ty.liquid @@ -0,0 +1,13 @@ +--- +permalink: '/feed.json' +--- +{ + "posts": [ + {% for item in collections.posts %} + { + "title": "{{ item.data.title }}", + "url": "{{ item.url }}" + }{% if not loop.last %},{% endif %} + {% endfor %} + ] +}