From 32065ea071cc47f8186b09aca822d442ea42ac6e Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 4 Aug 2023 21:00:46 -0700 Subject: [PATCH] chore: update link ids --- src/_data/links.js | 2 +- src/feeds/json/links.11ty.liquid | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_data/links.js b/src/_data/links.js index a0f2b989..1a7331f6 100644 --- a/src/_data/links.js +++ b/src/_data/links.js @@ -19,7 +19,7 @@ module.exports = async function () { ? new Date(link['published_date']) : new Date(link['created_at']), summary: link['summary'], - id: link['id'], + id: btoa(link['source_url']), } }) } diff --git a/src/feeds/json/links.11ty.liquid b/src/feeds/json/links.11ty.liquid index ed6a26a5..e81a7d94 100644 --- a/src/feeds/json/links.11ty.liquid +++ b/src/feeds/json/links.11ty.liquid @@ -9,7 +9,7 @@ permalink: '/links.json' "feed_url": "https://coryd.dev/links.json", "items": [{% for link in links %} { - "id": "{{ link.url | stripUtm | encodeAmp }}", + "id": "{{ link.id }}", "title": "{{ link.title | escape }}", "url": "{{ link.url | stripUtm | encodeAmp }}", "content_text": "{{ link.summary | escape }}",