VOD
Bedroom
1,422 minOn YouTube
GitHub commits
ohnsh/days6
- De-duplicate effort deriving slugs (2026/03/22) versus keys (2026-03-22).
c5271df - Finally giving in and making date slugs fully numeric. It looks especially bad next to the dev server's 4-digit port number, but in practice, it's the most sensible option. Sorting works without conversion to javascript's truly godforsaken date object. Simple string replacement converts between ISO-like dates (2026-03-22) and slugs (2026/03/22). And currently my post slugs are formatted like `2026/03/post-title-slug`. I think I like them that way, but definitely not if the month is an abbreviation.
579bbc6 - Re-organize posts for a reality where their paths directly map to URL slugs. New [...postSlugs].astro for routing those slugs. Simplified sidebar loading in all routes with new `getSidebar()` which imports its own day and tag maps. (Now that the project has grown, a few routes don't need those maps for anything except the sidebar.)
e39b6eb - Added slugify library; wrapping with lib/slugify.ts to define default custom replacements for emoji.
0af4dc0 - Minimum viable Excerpt implementation for posts. Not actually rendering <Excerpt> anywhere yet, but it will inevitably become the default when listing days or posts. Inspired by HiDeoo/starlight-blog, which is a bit more sophisticated.
4ed2531 - Clean up types a little bit.
a31e613