fix: add lastmod to sitemap

This commit is contained in:
Aaron Yarborough 2025-03-21 12:49:31 +00:00
parent 3b2e59b0a3
commit 032089eae0
4 changed files with 6 additions and 4 deletions

View file

@ -1,8 +1,9 @@
--- ---
title: Performance considerations when writing a TCP game server in dotnet title: Performance considerations when writing a TCP game server in dotnet
pubdate: 2025-02-23T21:12:37.864Z pubdate: 2025-02-23T21:12:37.864Z
moddate: 2025-03-21T21:12:47.864Z
desc: While writing a TCP game server in dotnet for a hobby project, I learned a few ways to improve the efficiency and scalability of the server while running into some performance issues. Here's what I learned! desc: While writing a TCP game server in dotnet for a hobby project, I learned a few ways to improve the efficiency and scalability of the server while running into some performance issues. Here's what I learned!
tags: tech, programming, c# tags: tech, programming, dotnet
--- ---
While writing a TCP game server in dotnet for a hobby project (check it out [here](https://github.com/AaronJY/GServer)), I learned a few ways to improve the efficiency and scalability of the server while running into some performance issues. While writing a TCP game server in dotnet for a hobby project (check it out [here](https://github.com/AaronJY/GServer)), I learned a few ways to improve the efficiency and scalability of the server while running into some performance issues.

View file

@ -29,10 +29,11 @@ module.exports = {
if (isArticle(path)) { if (isArticle(path)) {
metadata.priority = 0.6 metadata.priority = 0.6
const attributes = getArticleAttibutes(`content${path}.md`) const attributes = getArticleAttibutes(`content${path}.md`)
console.log(attributes)
if (!attributes) { return null } if (!attributes) { return null }
metadata.pubdate = attributes.pubdate ?? null metadata.pubdate = attributes.pubdate ?? null
metadata.moddate = attributes.moddate ?? null metadata.lastmod = attributes.moddate ?? null
console.log('Calculated sitemap dates for article', path) console.log('Calculated sitemap dates for article', path)
} }

View file

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

View file

@ -7,7 +7,7 @@
<url><loc>https://www.aaronjy.me/writing/</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/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/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><priority>0.6</priority><pubdate>2025-02-23T21:12:37.864Z</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/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/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/support-content-filte-structure-changes-on-a-static-site/</loc><priority>0.6</priority><pubdate>2024-03-18T16:47:32.150Z</pubdate></url>