@gurupanguji

Snippet Posts Design Spec

Objective

Automate the creation of Jekyll blog posts from Obsidian snippets located in the rr vault under lit/snippets/. This enables a high-volume blogging workflow by leveraging the research and clipping process in Obsidian.

Context & Constraints

Workflow Detail

  1. Discovery:
    • List files in lit/snippets/ for a target date (default: today).
    • Pattern: YYYY-MM-DD-*.
  2. Extraction:
    • Use obsidian read to get the full content of each snippet.
    • Parse the YAML front matter from the snippet.
    • Parse the markdown body.
  3. Transformation:
    • Map Obsidian properties (title, created, tags) to Jekyll properties.
    • Generate a slug from the title (lowercase, hyphens).
    • Prefix the title with 🔗 .
  4. Generation:
    • Construct the Jekyll front matter.
    • Combine with the original body.
    • Save to _posts/YYYY-MM-DD-slug.md.

Edge Cases & Safety