diff --git a/Makefile b/Makefile index 98a11ba..b172417 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ .PHONY: all mkdist watch clean SRC_DIR = src +RES_DIR = res PAGES_DIR = $(SRC_DIR)/pages BLOG_DIR = $(SRC_DIR)/blog DIST_DIR = dist @@ -13,10 +14,7 @@ TARGETS = $(addprefix $(DIST_DIR)/,$(PAGES)) all: $(PAGES_DIR)/blog.html $(TARGETS) watch: - while sleep 1 ; do \ - find ./$(SRC_DIR) -iname '*.html' -o -name "*.css" \ - | entr -d make -f ./Makefile ; \ - done + find ./$(SRC_DIR) -iname '*.html' -o -name "*.css" | entr -d make -f ./Makefile ; mkdirs: mkdir -p $(DIST_DIR) @@ -26,6 +24,9 @@ template: $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html | mkdir cp -r $(SRC_DIR)/styles $(DIST_DIR) cat $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html > $(BUILD_DIR)/template.html +favicon: $(RES_DIR) | mkdirs + cp res/* dist/ + $(PAGES_DIR)/blog.html: $(BLOG_PAGES) $(BLOG_DIR)/start_blog.html $(BLOG_DIR)/end_blog.html pandoc -f markdown -t html $^ -o $@.tmp cat $(BLOG_DIR)/start_blog.html $@.tmp $(BLOG_DIR)/end_blog.html > $@ diff --git a/res/favicon-32.png b/res/favicon-32.png new file mode 100644 index 0000000..d3c7845 Binary files /dev/null and b/res/favicon-32.png differ diff --git a/res/favicon-64.png b/res/favicon-64.png new file mode 100644 index 0000000..a05363f Binary files /dev/null and b/res/favicon-64.png differ diff --git a/res/favicon.ico b/res/favicon.ico new file mode 100644 index 0000000..d42d322 Binary files /dev/null and b/res/favicon.ico differ diff --git a/res/favicon.svg b/res/favicon.svg new file mode 100644 index 0000000..5eb2335 --- /dev/null +++ b/res/favicon.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +