9 lines
262 B
Bash
Executable file
9 lines
262 B
Bash
Executable file
#! /usr/bin/env bash
|
|
|
|
for entry in entries/*.md; do
|
|
echo "$entry"
|
|
done | cut -d "/" -f 2 | cut -d "." -f 1 | while read -r entry; do
|
|
cp ./header.html "entries/${entry}.html" -f
|
|
pandoc -t html --ascii "entries/${entry}.md" >> "entries/${entry}.html"
|
|
done
|