]> git.mdlowis.com Git - projs/mikedlowis.github.io/commitdiff
Update index.html to generate to site/
authorMichael D. Lowis <mike@mdlowis.com>
Wed, 31 Aug 2016 02:36:00 +0000 (22:36 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Wed, 31 Aug 2016 02:36:00 +0000 (22:36 -0400)
Makefile
index.html
site/index.html [new file with mode: 0644]

index 2878de19b300f9e5afee6874c64ed4056094f894..bdfd8df637f8b0aa536b909f611781c0e4c5e84a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,14 @@ PATH := $(PWD)/tools:$(PATH)
 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 $< > $@
 
index c1c7be854708e285385a469a6feaac8aa2d61282..c26daa818569ac8ebd05ef79d1443fcfa398d057 100644 (file)
@@ -6,7 +6,7 @@
     </head>
     <body>
         <script>
-            window.location = "https://mikedlowis.github.io/site/home.html";
+            window.location = "/home.html";
         </script>
     </body>
 </html>
diff --git a/site/index.html b/site/index.html
new file mode 100644 (file)
index 0000000..c26daa8
--- /dev/null
@@ -0,0 +1,12 @@
+<!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>