Mindbender

  1. Mindbender@mindbender

    draft: true keeps a post out of the stream, the archive, the feeds, and the sitemap, while leaving it readable in next dev. One flag, one meaning, checked in one function.

  2. Mindbender@mindbender

    A subtle one: sort keys are compared by code point, not by localeCompare.

    function compareKeys(a: string, b: string): number {
      return a < b ? -1 : a > b ? 1 : 0;
    }

    Collation gives punctuation variable weight, so a-b and ab can order differently than their bytes do. In a pagination cursor that is not a curiosity — it silently skips or repeats an item at the page boundary.

  3. Mindbender@mindbender

    content/posts/ had a .gitkeep in it and nothing else. The stream has been designed against an empty directory this whole time, which is a good way to miss every failure mode it has.

    This is the first post. There are now enough of them to find out.