fix: myriad feed updates

This commit is contained in:
Cory Dransfeldt 2024-02-19 10:05:58 -08:00
parent 27f8268e2b
commit 393dc8d2b9
No known key found for this signature in database
7 changed files with 35 additions and 16 deletions

View file

@ -11,7 +11,7 @@
"title": "{{ entry.title }}",
"url": "{{ entry.url }}",
"content_text": "{{ entry.title }}{% if tagMap %} {{ entry.url | tagLookup: tagMap }}{% endif %} {{ entry.url }}",
"date_published": "{{ entry.date | stringToDate | dateToRfc822 }}"
"date_published": "{{ entry.date | stringToRFC822Date }}"
}{% if not forloop.last %},{% endif %}
{%- endfor %}
]

View file

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="{{ permalink | absoluteUrl: meta.url }}" rel="self" type="application/rss+xml" />
{%- assign entries = data | normalizeEntries -%}
<title>{{ title }}</title>
<description>{{ description }}</description>
<link>{{ permalink | absoluteUrl: meta.url }}</link>
<lastBuildDate>{{ updated }}</lastBuildDate>
<lastBuildDate>{{ updated | stringToRFC822Date }}</lastBuildDate>
<image>
<title>{{ title }}</title>
<link>{{ permalink | absoluteUrl: meta.url }}</link>
@ -17,7 +18,7 @@
<item>
<title>{{ entry.title | escape }}</title>
<link>{{ entry.url | stripUtm | encodeAmp }}</link>
<pubDate>{{ entry.date | stringToDate | dateToRfc822 }}</pubDate>
<pubDate>{{ entry.date | stringToRFC822Date }}</pubDate>
<guid>{{ entry.url | stripUtm | encodeAmp }}</guid>
<description>{{ entry.excerpt | escape }}</description>
</item>

View file

@ -5,13 +5,13 @@ eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>OPML for all feeds in Cory Dransfeldt's blogroll</title>
<dateCreated>{{ page.date | dateToRfc822 }}</dateCreated>
</head>
<body>
{%- for blog in blogroll -%}
<outline text="{{ blog.name }}" title="{{ blog.name }}" type="rss" xmlUrl="{{ blog.feed }}" htmlUrl="{{ blog.url }}"/>
{% endfor %}
</body>
<head>
<title>OPML for all feeds in Cory Dransfeldt's blogroll</title>
<dateCreated>{{ page.date | stringToRFC822Date }}</dateCreated>
</head>
<body>
{%- for blog in blogroll -%}
<outline text="{{ blog.name }}" title="{{ blog.name }}" type="rss" xmlUrl="{{ blog.feed }}" htmlUrl="{{ blog.url }}"/>
{% endfor %}
</body>
</opml>

View file

@ -8,7 +8,7 @@ tags:
- 'Eleventy'
---
I made a few quick improvements to my [links page](/links).<!-- excerpt -->
I made a few quick improvements to my [links page](https://coryd.dev/links).<!-- excerpt -->
I've fetched the author from Readwise's Reader API and displayed it next to the time, which required the simple addition of a field to my `links.js` data file. Additionally, and perhaps more interestingly, when a link has been shared via [Nicolas Hoizey](https://nicolas-hoizey.com)'s [GitHub action](https://github.com/nhoizey/github-action-feed-to-mastodon), it's rendered with a Mastodon icon linking to said post.