diff --git a/Makefile b/Makefile
index 9370b3a..719b106 100644
--- a/Makefile
+++ b/Makefile
@@ -37,3 +37,6 @@ cover_report:
go tool cover -func=coverage.txt
go tool cover -html=coverage.txt -o coverage.html
open coverage.html
+
+site:
+ go run tools/cmd/sitebuild/main.go
diff --git a/main.go b/main.go
index ca9230e..8557b5e 100644
--- a/main.go
+++ b/main.go
@@ -14,7 +14,6 @@ import (
"zedshaw.games/webapp/api"
"zedshaw.games/webapp/data"
- "zedshaw.games/webapp/zed"
)
@@ -30,8 +29,6 @@ func main() {
StrictRouting: true,
})
- zed.RenderPages("./pages", "./public")
-
app.Use(logger.New())
app.Use(recov.New())
diff --git a/public/alpine_test.html b/public/alpine_test.html
index 007810f..5e8d66f 100644
--- a/public/alpine_test.html
+++ b/public/alpine_test.html
@@ -1,4 +1,15 @@
-
+
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -7,16 +18,10 @@
-s">
- ZedShaw's Game Thing
-
-
-
-
-
+
+
+ {}}">
🏡 Zed's Game Dev Website Yay
diff --git a/public/base.html b/public/base.html
index 123e0a3..11919e1 100644
--- a/public/base.html
+++ b/public/base.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -23,18 +34,10 @@
-a()" x-data="{Game: {}}">
-
- 🏡 Zed's Game Dev Website Yay
-
-
-
- Gameplay Demo Video
-
-
- Title
-
+
+
+
Some Image
Description
diff --git a/public/error/index.html b/public/error/index.html
index f828bf6..f77da06 100644
--- a/public/error/index.html
+++ b/public/error/index.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -24,3 +35,6 @@
+
+
+
diff --git a/public/game/1/turings-tarpit/index.html b/public/game/1/turings-tarpit/index.html
index 8c978be..e337acd 100644
--- a/public/game/1/turings-tarpit/index.html
+++ b/public/game/1/turings-tarpit/index.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -59,3 +70,6 @@
+
+
+
diff --git a/public/game/index.html b/public/game/index.html
index 6f3e316..92ce444 100644
--- a/public/game/index.html
+++ b/public/game/index.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -74,3 +85,6 @@ x DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos j
+
+
+
diff --git a/public/index.html b/public/index.html
index 572d2fc..ab242e9 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -85,3 +96,6 @@
+
+
+
diff --git a/public/live/index.html b/public/live/index.html
index 235a9f3..d475be6 100644
--- a/public/live/index.html
+++ b/public/live/index.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -55,3 +66,6 @@
+
+
+
diff --git a/public/login/index.html b/public/login/index.html
index c04a523..e4d4a5c 100644
--- a/public/login/index.html
+++ b/public/login/index.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -42,3 +53,6 @@
+
+
+
diff --git a/public/register/index.html b/public/register/index.html
index fda03b8..f44e9f3 100644
--- a/public/register/index.html
+++ b/public/register/index.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -44,3 +55,6 @@
+
+
+
diff --git a/public/stream/1/index.html b/public/stream/1/index.html
index 78c6ba1..cf85b54 100644
--- a/public/stream/1/index.html
+++ b/public/stream/1/index.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -79,3 +90,6 @@ i poutine jianbing chambray.
+
+
+
diff --git a/public/stream/index.html b/public/stream/index.html
index e2e025c..3b016ac 100644
--- a/public/stream/index.html
+++ b/public/stream/index.html
@@ -1,4 +1,15 @@
+
+
+
+
+
+
+ Hello
+
+
+
+
@@ -66,3 +77,6 @@ ral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibece
+
+
+
diff --git a/tools/cmd/dothing/main.go b/tools/cmd/dothing/main.go
deleted file mode 100644
index eff0db9..0000000
--- a/tools/cmd/dothing/main.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package main
-
-import (
- "log"
-)
-
-func main() {
- log.Println("I DO THING!")
-}
diff --git a/tools/cmd/sitebuild/main.go b/tools/cmd/sitebuild/main.go
new file mode 100644
index 0000000..ef42ba0
--- /dev/null
+++ b/tools/cmd/sitebuild/main.go
@@ -0,0 +1,11 @@
+package main
+
+import (
+ "log"
+ "zedshaw.games/webapp/zed"
+)
+
+func main() {
+ log.Println("Generating site from pages to public.")
+ zed.RenderPages("./pages", "./public", "layouts/main")
+}