From c1e82ffb2c6f47a9b917774bf9312c5ad9df14e2 Mon Sep 17 00:00:00 2001 From: Joseph Montanaro Date: Tue, 5 Sep 2023 17:16:39 -0700 Subject: [PATCH] finish feed --- src/lib/xml.js | 4 ++-- src/routes/_posts/all.js | 12 ------------ .../exposing-docker-containers-to-your-lan.svx | 1 - src/routes/_posts/hitchikers-guide-to-mesh-vpns.svx | 1 - .../_posts/imagining-a-passwordless-future.svx | 1 - src/routes/_posts/languages-high-and-low.svx | 1 - src/routes/_posts/sidenotes.svx | 1 - src/routes/_posts/simpler-socketio.svx | 1 - .../sufficiently-advanced-technology-magic.svx | 1 - src/routes/_posts/vue-vs-svelte.svx | 1 - src/routes/feed/+server.js | 12 +++++++----- 11 files changed, 9 insertions(+), 27 deletions(-) diff --git a/src/lib/xml.js b/src/lib/xml.js index 260bfc4..7d4c19e 100644 --- a/src/lib/xml.js +++ b/src/lib/xml.js @@ -89,6 +89,6 @@ function escape(text) { // we aren't going to bother with escaping attributes, so we won't worry about quotes return text .replaceAll('&', '&') - .replaceAll('<', '>') - .replaceAll('>', '<'); + .replaceAll('<', '<') + .replaceAll('>', '>'); } diff --git a/src/routes/_posts/all.js b/src/routes/_posts/all.js index d1f8925..d58cca7 100644 --- a/src/routes/_posts/all.js +++ b/src/routes/_posts/all.js @@ -16,18 +16,6 @@ for (const path in posts) { } -let ids = new Set(); -for (const postMeta of postData) { - if (postMeta.uuid === undefined) { - throw(`Missing UUID for post: ${postMeta.title}`); - } - if (ids.has(postMeta.uuid)) { - throw(`Duplicate UUID in post: ${postMeta.title}`); - } - ids.add(postMeta.uuid); -} - - postData.sort((a, b) => { // sorting in reverse, so we flip the intuitive order if (a.date > b.date) return -1; diff --git a/src/routes/_posts/exposing-docker-containers-to-your-lan.svx b/src/routes/_posts/exposing-docker-containers-to-your-lan.svx index f19dc46..7f3de8d 100644 --- a/src/routes/_posts/exposing-docker-containers-to-your-lan.svx +++ b/src/routes/_posts/exposing-docker-containers-to-your-lan.svx @@ -2,7 +2,6 @@ title: Exposing Docker Containers to your LAN description: If, for some strange reason, you should want to do such a thing. date: 2022-03-21 -uuid: 81715fb3-990e-487e-9662-fed7b7d02943 ---