pandoc-blog/bin/build-index.sh
Christopher P. Brown 938049d1cc initial commit
i guess it's a pandoc blog now!
2022-03-01 16:07:01 -07:00

9 lines
238 B
Bash
Executable File

#!/bin/zsh
cat templates/index-before.html > index.md
for file in $(ls -1 content/*.md | sort -r)
do
dest="${$(basename $file)/md/html}"
pandoc --template=templates/blog-list-item.template --variable=url:$dest $file >> index.md
done