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 ---