PAGES = $(addprefix site/,$(addsuffix .html,$(basename $(notdir $(wildcard pages/*.md)))))
.PHONY: serve
-all: $(PAGES)
+all: $(PAGES) site/index.html
serve:
tools/serve
+site/index.html: index.html
+ cp $^ $@
+
site/%.html : pages/%.md
genpage $< > $@
</head>
<body>
<script>
- window.location = "https://mikedlowis.github.io/site/home.html";
+ window.location = "/home.html";
</script>
</body>
</html>
--- /dev/null
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <meta charset="utf-8">
+ </head>
+ <body>
+ <script>
+ window.location = "/home.html";
+ </script>
+ </body>
+</html>