fix: feed date

This commit is contained in:
Cory Dransfeldt 2023-09-19 17:50:41 -07:00
parent 94f77a46dd
commit 4c66036e84
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -1,10 +1,10 @@
module.exports = async function () {
const { ActivityFeed } = await import('@11ty/eleventy-activity-feed')
const feed = new ActivityFeed()
feed.addSource('atom', '📝', 'https://coryd.dev/feeds/posts')
// feed.addSource('rss', '📝', 'https://coryd.dev/feeds/posts')
feed.addSource('rss', '🎥', 'https://letterboxd.com/cdme/rss')
feed.addSource('atom', '🔗', 'https://coryd.dev/feeds/links')
feed.addSource('atom', '📖', 'https://coryd.dev/feeds/books')
// feed.addSource('rss', '🔗', 'https://coryd.dev/feeds/links')
// feed.addSource('rss', '📖', 'https://coryd.dev/feeds/books')
const entries = feed.getEntries().catch()
const res = await entries
const activity = { posts: [] }

View file

@ -5,6 +5,7 @@
<title>{{ title }}</title>
<description>{{ description }}</description>
<link>{{ permalink | absoluteUrl: site.url }}</link>
<lastBuildDate>{{ updated }}</lastBuildDate>
<image>
<title>{{ title }}</title>
<link>{{ permalink | absoluteUrl: site.url }}</link>
@ -16,6 +17,7 @@
<item>
<title>{{ entry.title | escape }}</title>
<link>{{ entry.url | stripUtm | encodeAmp }}</link>
<pubDate>{{ entry.date }}</pubDate>
<guid>{{ entry.url | stripUtm | encodeAmp }}</guid>
<description>{{ entry.excerpt | markdown | escape }}</description>
</item>