cheatsheets devlog projects search

rules-for-links.md

Formal Rules for Links

2023-01-21 2

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