Add notes.json feed
This commit is contained in:
parent
a3b96368ea
commit
5c46267ecf
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
imports:
|
||||
- sculpin_site.yml
|
||||
- sculpin_site.yml
|
||||
url: https://zet.oliverdavies.uk
|
||||
|
|
16
source/notes.json.twig
Normal file
16
source/notes.json.twig
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
permalink: /notes.json
|
||||
use: [notes]
|
||||
---
|
||||
|
||||
[
|
||||
{% for note in data.notes|sort((a,b) => b.date <=> a.date) %}
|
||||
{
|
||||
"id": {{ note.filename|replace({".md": ""}) }},
|
||||
"date": {{ note.date }},
|
||||
"title": "{{ note.title }}",
|
||||
"url": "{{ site.url }}/{{ note.url|trim("/") }}"
|
||||
}
|
||||
{%~ if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
]
|
Loading…
Reference in a new issue