whoami | describe

hyperprior


#!/usr/bin/env nu
def to-post-table [] {
  $in
  | select name modified size
  | where name ends-with '.md'
  | enumerate
  | each {|post|
    $post.item
    | merge {
      row-number: $post.index
      title: (open $post.item.name | frontmatter | title)
      slug: ($post.item.name | str replace -r '(.+).md' '$1')
      modified: ($post.item.modified | date humanize)
    }
  }
}
print (ls posts | to-post-table)

# name size modified
0 good shit 2.1 kB 3 days ago
1 nushell is something different entirely 332 B 2 days ago
2 what i'm reading 3.2 kB now