Add redirects feed
This commit is contained in:
parent
c6dce19581
commit
a798306315
3 changed files with 328 additions and 0 deletions
15
source/redirects.json.twig
Normal file
15
source/redirects.json.twig
Normal 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 %}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue