blob: 516f594ce627bf2d597892abdc521905d9b1f62d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
file="---\ntitle: All Stories\n---\n"
for i in md/*.md; do
title=$(sed -nE 's/^title: "?(.*)("?)$/\1/p' "$i")
no_ext=$(basename "$i" .md)
file+="\n- [$title](/stories/${no_ext}.html)"
done
echo -e "$file"
|