Created
January 14, 2012 12:32
-
-
Save artyom/1611271 to your computer and use it in GitHub Desktop.
make site from markdown files (using "Discount" markdown implementation)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAKEFLAGS := -j | |
MDFILES := $(shell find . -name '*.md' -type f) | |
HTMLS := $(patsubst %.md,%.html,$(MDFILES)) | |
TEMPLATE := template.tpl | |
.PHONY: all clean | |
all: $(HTMLS) | |
%.html: %.md $(TEMPLATE) | |
theme -E -t $(TEMPLATE) -o $@ $< | |
clean: | |
rm -f $(HTMLS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"><title><?theme title?></title> | |
<?theme body?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment