:: krowemoh

Thursday | 26 DEC 2024
Posts Links Other About Now

previous
next

Formal Rules for Links

2023-01-21

It's a good idea that I formalize how I generate my links as if I ever do switch how I create this blog, I'll need to make sure all my links still work.

All my html files exist under /devlog/.

Da Rules:

  1. Read in a markdown file

  2. Split by new lines

  3. The first line contains the title

  4. Remove the first 2 characters, hashtag and space, from the title

  5. Convert the title to lower case

  6. Replace all spaces with a dash, -

  7. Append .html to the title

An example:

Set Up Search for the Blog
Uxn - Learning Tools

Will become:

set-up-search-for-the-blog.html
uxn---learning-tools.html