vizdun blog

Renaming things and actually adding slugs

Published:

So, up until now I just this crappy naming scheme of rough_type-number.md for naming article on this site. This worked fine and even good for sorting them, but trying to find any without remembering their number was always a pain. The slugs were also extremely unuseful. So now I adopted the apparently Zola approved naming scheme of YYYY-mm-dd_name.md, which, it seems, will serve me much better!

Screenshot of the VS code file explorer showing the directory structure of this blog. All the pages are nicely sorted by date, except for two things: posts made in the same day, and posts that are represented by directories rather than .md files.

As you can see, all the files are so nicely sorted... Wait! What's that? The directories are misplaced! Yea, that's still a problem with this. Directories always place before files in VS code, and in just about every sane code editor. I don't really know what to do about this since it's not like I want directories to ever sort amidst files in any other circumstance. Right now I have a workspace config setting fixing this, and I guess that's fine enough.

The second issue is that posts made in the same day mis-sort also. There's not much I can do about that either other than naming them with the full datetime timestamp but that would be way too long I think.

Oh and by the way, sorry if I broke any links!