From 5a28e13e519b504fdb8a0400b893f2cc6bc42d07 Mon Sep 17 00:00:00 2001
From: Aaron Yarborough <3855819+AaronJY@users.noreply.github.com>
Date: Fri, 21 Mar 2025 13:03:01 +0000
Subject: [PATCH] fix: use lastmod instead of pubdate
---
next-sitemap.config.cjs | 3 +--
package.json | 2 +-
public/sitemap.xml | 12 ++++++------
3 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/next-sitemap.config.cjs b/next-sitemap.config.cjs
index 8ba6e89..c5e58e6 100644
--- a/next-sitemap.config.cjs
+++ b/next-sitemap.config.cjs
@@ -32,8 +32,7 @@ module.exports = {
console.log(attributes)
if (!attributes) { return null }
- metadata.pubdate = attributes.pubdate ?? null
- metadata.lastmod = attributes.moddate ?? null
+ metadata.lastmod = attributes.moddate ?? attributes.pubdate ?? null
console.log('Calculated sitemap dates for article', path)
}
diff --git a/package.json b/package.json
index 5dd39cc..cbb311d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "www-aaronjy-2024",
- "version": "1.6.2.0",
+ "version": "1.6.3.0",
"private": true,
"type": "module",
"scripts": {
diff --git a/public/sitemap.xml b/public/sitemap.xml
index b810b4a..0efc8c5 100644
--- a/public/sitemap.xml
+++ b/public/sitemap.xml
@@ -5,10 +5,10 @@
https://www.aaronjy.me/cv/0.8
https://www.aaronjy.me/tags/0.8
https://www.aaronjy.me/writing/0.8
-https://www.aaronjy.me/writing/attitudes-to-reading/0.6Tue, 18 Mar 2025 00:00:00 GMT
-https://www.aaronjy.me/writing/moving-from-github-to-forgejo/0.6Sun, 16 Mar 2025 00:00:00 GMT
-https://www.aaronjy.me/writing/performance-considerations-tcp-game-server/Fri, 21 Mar 2025 21:12:47 GMT0.6Sun, 23 Feb 2025 21:12:37 GMT
-https://www.aaronjy.me/writing/quick-reflection-katherine-may/0.6Sun, 09 Mar 2025 00:00:00 GMT
-https://www.aaronjy.me/writing/static-site-on-google-cloud/0.6Wed, 01 May 2024 00:00:00 GMT
-https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/0.6Mon, 18 Mar 2024 16:47:32 GMT
+https://www.aaronjy.me/writing/attitudes-to-reading/Tue, 18 Mar 2025 00:00:00 GMT0.6
+https://www.aaronjy.me/writing/moving-from-github-to-forgejo/Sun, 16 Mar 2025 00:00:00 GMT0.6
+https://www.aaronjy.me/writing/performance-considerations-tcp-game-server/Fri, 21 Mar 2025 21:12:47 GMT0.6
+https://www.aaronjy.me/writing/quick-reflection-katherine-may/Sun, 09 Mar 2025 00:00:00 GMT0.6
+https://www.aaronjy.me/writing/static-site-on-google-cloud/Wed, 01 May 2024 00:00:00 GMT0.6
+https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/Mon, 18 Mar 2024 16:47:32 GMT0.6
\ No newline at end of file