5 ms·
You haven't given detailed specifications, but if you're writing the pages in markdown and you have Pandoc installed, this simple Makefile will do what you want
by bachmeier 3y ago
You haven't given detailed specifications, but if you're writing the pages in markdown and you have Pandoc installed, this simple Makefile will do what you want, where website.html is your Pandoc template:
files := $(patsubst %.md,%,$(wildcard *.md))
all:
for f in $(files); do \
pandoc -s -o $$f.html --template=website.html $$f.md;\
done