feat: feedpress plus cleanup

This commit is contained in:
Cory Dransfeldt 2023-09-04 14:47:29 -07:00
parent cc0a934f88
commit 29d3042f63
16 changed files with 32 additions and 107 deletions

View file

@ -1,6 +1,6 @@
---
layout: null
permalink: /books.xml
permalink: /feeds/books
---
{% layout "./_includes/feeds/books.liquid" %}
{% block title %}Books • Cory Dransfeldt{% endblock %}

View file

@ -1,6 +1,6 @@
---
layout: null
permalink: /feed.xml
permalink: /feeds/posts
---
{% layout "./_includes/feeds/feed.liquid" %}
{% block title %}All posts • Cory Dransfeldt{% endblock %}

View file

@ -1,6 +1,6 @@
---
layout: null
permalink: /follow.xml
permalink: /feeds/follow
---
{% layout "./_includes/feeds/follow.liquid" %}
{% block title %}Follow • Cory Dransfeldt{% endblock %}

View file

@ -1,9 +0,0 @@
---
permalink: '.meta/gpc.json'
eleventyExcludeFromCollections: true
dynamicPermalink: false
---
{
"gpc": true,
"lastUpdate": "2023-06-19"
}

View file

@ -1,20 +0,0 @@
---
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.url | stripUtm | encodeAmp }}",
"title": "{{ book.title | escape }}",
"url": "{{ book.url | stripUtm | encodeAmp }}",
"content_text": "{{ book.description | strip_html }}",
"date_published": "{{ book.dateAdded | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
}{% if not forloop.last %},{% endif %}
{% endfor %}
]
}

View file

@ -1,21 +0,0 @@
---
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 %}
]
}

View file

@ -1,21 +0,0 @@
---
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 %}
]
}

View file

@ -1,20 +0,0 @@
---
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.id }}",
"title": "{{ link.title | escape }}",
"url": "{{ link.url | stripUtm | encodeAmp }}",
"content_text": "{{ link.summary | escape }}",
"date_published": "{{ link.date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
}{% if not forloop.last %},{% endif %}
{% endfor %}
]
}

View file

@ -1,6 +1,6 @@
---
layout: null
permalink: /links.xml
permalink: /feeds/links
---
{% layout "./_includes/feeds/links.liquid" %}
{% block title %}Links • Cory Dransfeldt{% endblock %}