I want to add support for referencing posts in the future. Similar to how commits can be referenced on GitHub with its SHA id. The old slug was a combination of the feed slug and the posts timestamp. This wouldn't allow for referencing posts globally. I thought about adding a solution which generates a unique random string like this (inspired from here):

# NOTE: We hardcode this for better performance
chars = [
  "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
  "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"

but in the end I think this would have been an overkill and we just settled for using the regular ID of a post.

or Cancel