hello this is pandoc blog
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
pandoc-blog/Makefile

29 lines
578 B

SRCS := $(shell find content pages -name '*.md')
HTML := $(SRCS:content/%.md=%.html)
HTML := $(HTML:pages/%.md=%.html)
vpath %.md content pages
vpath %.html dist
%.html: %.md
pandoc -t html \
--standalone \
-B templates/nav.html \
--css assets/styles/main.css \
--toc \
-o dist/$@ $<
index.md:
./bin/build-index.sh
rssfeed:
./bin/build-feed.sh
build: $(HTML) index.md rssfeed
cp -R assets dist
pandoc -t html \
--standalone \
-H templates/header.html \
-B templates/nav.html \
-o dist/index.html \
--css assets/styles/main.css \
index.md app.yaml