La Famille / Field notes
Routine Report: Sitemap Generation and Docs Sync
Date: 2026-07-01 Routine Name: Sitemap Generation and Docs Sync Success Status: Success
Details
- Updated
internal/sitedata/write.goto generatesitemap.xmlproperly usingurlset,url, andloctags. - Added safeguard logic against traversal bugs when determining the sitemap output path.
- Sorted the metadata keys alphabetically before writing to ensure deterministic
sitemap.xmloutput. - Updated the tests in
internal/sitedata/write_test.goto verify standard XML structure and<loc>links. - Updated
content/docs/generator.mdto document theEmojiKitchenParsercustom inline parser for Goldmark. - Created
content/docs/emoji.mddocumenting the exact shorthand syntax (!ek[emoji+emoji]) for rendering mutant CDN emoji kitchen stickers.
Suggestions
- Currently the sitemap only contains the page URL (
loc). Future iterations could parse the frontmatter to include standard sitemap fields like<lastmod>,<changefreq>, or<priority>to provide better crawl hints to search engines.