cheatsheets devlog search


Formal Rules for Links

Title: Formal Rules for Links
Date: 2023-01-21
Sequence: 2
Tags: []

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: