Work on style and finish blog
This commit is contained in:
4
Makefile
4
Makefile
@@ -25,11 +25,13 @@ template: $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html | mkdis
|
||||
cp -r $(SRC_DIR)/styles $(DIST_DIR)
|
||||
cat $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html > dist/template.html
|
||||
|
||||
$(PAGES_DIR)/blog.html: $(BLOG_PAGES)
|
||||
$(PAGES_DIR)/blog.html: $(BLOG_PAGES) $(BLOG_DIR)/start_blog.html $(BLOG_DIR)/end_blog.html
|
||||
pandoc -f markdown -t html $^ -o $@
|
||||
cat $(BLOG_DIR)/start_blog.html $@ $(BLOG_DIR)/end_blog.html | tee $@
|
||||
|
||||
$(DIST_DIR)/%.html: $(PAGES_DIR)/%.html | template mkdist
|
||||
cat $(DIST_DIR)/template.html $(PAGES_DIR)/$*.html $(SRC_DIR)/end.html > $@
|
||||
|
||||
clean:
|
||||
rm -rf dist
|
||||
rm -rf $(PAGES_DIR)/blog.html
|
||||
|
||||
Reference in New Issue
Block a user