chore: organize + clean up
This commit is contained in:
parent
ddc2e30375
commit
95581a079c
27 changed files with 172 additions and 15 deletions
19
src/feeds/books.liquid
Normal file
19
src/feeds/books.liquid
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
layout: null
|
||||
permalink: /books.xml
|
||||
---
|
||||
{% layout "./_includes/feeds/books.liquid" %}
|
||||
{% block title %}Books • Cory Dransfeldt{% endblock %}
|
||||
{% block self %}books.xml{% endblock %}
|
||||
{% block update %}{{ articles[0].time | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
|
||||
{% block entries %}
|
||||
{% for book in books %}
|
||||
<entry>
|
||||
<title>{{ book.title | escape }}</title>
|
||||
<link href="{{book.link}}" />
|
||||
<updated>{{ book.finished | date: "%m.%d.%Y" }}</updated>
|
||||
<id>{{ book.link }}</id>
|
||||
<content type="html"></content>
|
||||
</entry>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
20
src/feeds/json/books.11ty.liquid
Normal file
20
src/feeds/json/books.11ty.liquid
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
permalink: '/books.json'
|
||||
---
|
||||
{
|
||||
"version": "https://jsonfeed.org/version/1",
|
||||
"title": "Books • Cory Dransfeldt",
|
||||
"icon": "https://coryd.dev/static/images/avatar.webp",
|
||||
"home_page_url": "https://coryd.dev",
|
||||
"feed_url": "https://coryd.dev/books.json",
|
||||
"items": [{% for book in books %}
|
||||
{
|
||||
"id": "{{ book.link }}",
|
||||
"title": "{{ book.title | escape }}",
|
||||
"url": "{{ book.link }}",
|
||||
"content_text": "",
|
||||
"date_published": "{{ book.finished | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
|
||||
}{% if not forloop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
}
|
21
src/feeds/json/feed.11ty.liquid
Normal file
21
src/feeds/json/feed.11ty.liquid
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
permalink: '/feed.json'
|
||||
---
|
||||
{% assign posts = collections.posts | reverse %}
|
||||
{
|
||||
"version": "https://jsonfeed.org/version/1",
|
||||
"title": "All posts • Cory Dransfeldt",
|
||||
"icon": "https://coryd.dev/assets/img/avatar.webp",
|
||||
"home_page_url": "https://coryd.dev",
|
||||
"feed_url": "https://coryd.dev/feed.json",
|
||||
"items": [{% for item in posts %}
|
||||
{
|
||||
"id": "{{ site.url }}{{ item.url }}",
|
||||
"title": "{{ item.data.title }}",
|
||||
"url": "{{ site.url }}{{ item.url }}",
|
||||
"content_text": "{{ item.data.title }} {{ site.url }}{{ item.url }}",
|
||||
"date_published": "{{ item.date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
|
||||
}{% if not forloop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
}
|
21
src/feeds/json/follow.11ty.liquid
Normal file
21
src/feeds/json/follow.11ty.liquid
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
permalink: '/follow.json'
|
||||
---
|
||||
{% assign posts = follow.posts %}
|
||||
{
|
||||
"version": "https://jsonfeed.org/version/1",
|
||||
"title": "All activity • Cory Dransfeldt",
|
||||
"icon": "https://coryd.dev/static/images/avatar.webp",
|
||||
"home_page_url": "https://coryd.dev",
|
||||
"feed_url": "https://coryd.dev/follow.json",
|
||||
"items": [{% for item in posts %}
|
||||
{
|
||||
"id": "{{ item.id }}",
|
||||
"title": "{{ item.title }}",
|
||||
"url": "{{ item.url }}",
|
||||
"content_text": "{{ item.title }} {{ item.url }}",
|
||||
"date_published": "{{ item.date_published | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
|
||||
}{% if not forloop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
}
|
20
src/feeds/json/links.11ty.liquid
Normal file
20
src/feeds/json/links.11ty.liquid
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
permalink: '/links.json'
|
||||
---
|
||||
{
|
||||
"version": "https://jsonfeed.org/version/1",
|
||||
"title": "Links • Cory Dransfeldt",
|
||||
"icon": "https://coryd.dev/static/images/avatar.webp",
|
||||
"home_page_url": "https://coryd.dev",
|
||||
"feed_url": "https://coryd.dev/links.json",
|
||||
"items": [{% for link in links %}
|
||||
{
|
||||
"id": "{{ link.link }}",
|
||||
"title": "{{ link.title | escape }}",
|
||||
"url": "{{ link.link }}",
|
||||
"content_text": "",
|
||||
"date_published": "{{ link.time | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
|
||||
}{% if not forloop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
}
|
Reference in a new issue