ab.ncvp.me

Beef up slugify/deslugify

Posted on 9th Jul 2026 at 16:09 by Admin


Introduce the concept of slug script-name-dot-js for script-name.js.
This should work for tags, and shouldn’t be needed anywhere else.
It’s not perfect. eg: MDX → mdx → Mdx

Test with % node test-slugify.js "Human string"
It has to be run from ~/winxp/projects/astrojs/astro-blog, but that’s fair enough.

Categories: Dev Content

Rendered by src/pages/blog/[slug].astro