Add redirects feed

This commit is contained in:
Oliver Davies 2020-04-29 12:59:15 +01:00
parent c6dce19581
commit a798306315
3 changed files with 328 additions and 0 deletions

View file

@ -0,0 +1,15 @@
---
permalink: redirects.json
---
{
"redirects": [
{% for i, redirect in site.redirects %}
{
"id": "{{ i + 1 }}",
"from": "{{ redirect.from }}",
"to": "{{ redirect.to }}"
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}