Compare commits

...

2 commits

Author SHA1 Message Date
Aaron Yarborough
5a28e13e51 fix: use lastmod instead of pubdate 2025-03-21 13:03:13 +00:00
Aaron Yarborough
ae999d7adf fix: use rfc 822 date for sitemap 2025-03-21 12:59:33 +00:00
3 changed files with 10 additions and 11 deletions

View file

@ -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)
}
@ -65,7 +64,7 @@ function getArticleAttibutes (path) {
return {
...attributes,
pubdate: attributes.pubdate?.toISOString() ?? null,
moddate: attributes.moddate?.toISOString() ?? null
pubdate: attributes.pubdate?.toUTCString() ?? null,
moddate: attributes.moddate?.toUTCString() ?? null
}
}

View file

@ -1,6 +1,6 @@
{
"name": "www-aaronjy-2024",
"version": "1.6.1.0",
"version": "1.6.3.0",
"private": true,
"type": "module",
"scripts": {

View file

@ -5,10 +5,10 @@
<url><loc>https://www.aaronjy.me/cv/</loc><priority>0.8</priority></url>
<url><loc>https://www.aaronjy.me/tags/</loc><priority>0.8</priority></url>
<url><loc>https://www.aaronjy.me/writing/</loc><priority>0.8</priority></url>
<url><loc>https://www.aaronjy.me/writing/attitudes-to-reading/</loc><priority>0.6</priority><pubdate>2025-03-18T00:00:00.000Z</pubdate></url>
<url><loc>https://www.aaronjy.me/writing/moving-from-github-to-forgejo/</loc><priority>0.6</priority><pubdate>2025-03-16T00:00:00.000Z</pubdate></url>
<url><loc>https://www.aaronjy.me/writing/performance-considerations-tcp-game-server/</loc><lastmod>2025-03-21T21:12:47.864Z</lastmod><priority>0.6</priority><pubdate>2025-02-23T21:12:37.864Z</pubdate></url>
<url><loc>https://www.aaronjy.me/writing/quick-reflection-katherine-may/</loc><priority>0.6</priority><pubdate>2025-03-09T00:00:00.000Z</pubdate></url>
<url><loc>https://www.aaronjy.me/writing/static-site-on-google-cloud/</loc><priority>0.6</priority><pubdate>2024-05-01T00:00:00.000Z</pubdate></url>
<url><loc>https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/</loc><priority>0.6</priority><pubdate>2024-03-18T16:47:32.150Z</pubdate></url>
<url><loc>https://www.aaronjy.me/writing/attitudes-to-reading/</loc><lastmod>Tue, 18 Mar 2025 00:00:00 GMT</lastmod><priority>0.6</priority></url>
<url><loc>https://www.aaronjy.me/writing/moving-from-github-to-forgejo/</loc><lastmod>Sun, 16 Mar 2025 00:00:00 GMT</lastmod><priority>0.6</priority></url>
<url><loc>https://www.aaronjy.me/writing/performance-considerations-tcp-game-server/</loc><lastmod>Fri, 21 Mar 2025 21:12:47 GMT</lastmod><priority>0.6</priority></url>
<url><loc>https://www.aaronjy.me/writing/quick-reflection-katherine-may/</loc><lastmod>Sun, 09 Mar 2025 00:00:00 GMT</lastmod><priority>0.6</priority></url>
<url><loc>https://www.aaronjy.me/writing/static-site-on-google-cloud/</loc><lastmod>Wed, 01 May 2024 00:00:00 GMT</lastmod><priority>0.6</priority></url>
<url><loc>https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/</loc><lastmod>Mon, 18 Mar 2024 16:47:32 GMT</lastmod><priority>0.6</priority></url>
</urlset>