Work on style and finish blog

This commit is contained in:
2025-02-13 22:20:25 +01:00
parent 0928cc0b45
commit 356de5f9dd
11 changed files with 195 additions and 13 deletions

View File

@@ -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