#!/usr/bin/env bash cat <

Posts

HDR for blog_post_md in blog/*.md; do date=$(grep -o '[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}' <<<"$blog_post_md") title=$(grep -m 1 '^#\s\+' "$blog_post_md" | sed 's/^#\s\+//') html=$(sed 's/\.md$/.html/' <<<"$blog_post_md") cat <$date
$title
INNIE done cat <

Other People's Posts

{{range .Articles}}

{{.Title}}

{{.Summary}}

via {{.SourceTitle}} {{.Date | datef "January 2, 2006"}}
{{end}}

Generated by openring

FTR