summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--.gitmodules3
-rw-r--r--Makefile10
-rw-r--r--README1
-rw-r--r--archetypes/default.md5
-rw-r--r--cmd/webshopd/main.go15
-rw-r--r--go.mod3
-rw-r--r--hugo.toml4
m---------themes/aoidh0
9 files changed, 44 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0314984
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+bin/
+.hugo_build.lock
+public/
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..016f735
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "themes/aoidh"]
+ path = themes/aoidh
+ url = https://git.samanthony.xyz/aoidh
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..27685dc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+all: public bin/webshopd
+
+public:
+ hugo build
+
+bin/%: cmd/%
+ go build -o $@ ./$<
+
+clean:
+ rm -rf bin public
diff --git a/README b/README
new file mode 100644
index 0000000..1e7bbb8
--- /dev/null
+++ b/README
@@ -0,0 +1 @@
+Web shop for shop.samanthony.xyz.
diff --git a/archetypes/default.md b/archetypes/default.md
new file mode 100644
index 0000000..25b6752
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,5 @@
++++
+date = '{{ .Date }}'
+draft = true
+title = '{{ replace .File.ContentBaseName "-" " " | title }}'
++++
diff --git a/cmd/webshopd/main.go b/cmd/webshopd/main.go
new file mode 100644
index 0000000..519a299
--- /dev/null
+++ b/cmd/webshopd/main.go
@@ -0,0 +1,15 @@
+package main
+
+import (
+ "fmt"
+ "html"
+ "log"
+ "net/http"
+)
+
+func main() {
+ http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
+ fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
+ })
+ log.Fatal(http.ListenAndServe(":8081", nil))
+}
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..4d48f6f
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,3 @@
+module git.samanthony.xyz/webshop
+
+go 1.25.5
diff --git a/hugo.toml b/hugo.toml
new file mode 100644
index 0000000..52d0361
--- /dev/null
+++ b/hugo.toml
@@ -0,0 +1,4 @@
+baseURL = 'https://example.org/'
+languageCode = 'en-us'
+title = 'My New Hugo Site'
+theme = 'aoidh'
diff --git a/themes/aoidh b/themes/aoidh
new file mode 160000
+Subproject 18d0eb02ee0e9f199ff755d58dea7d523838f3c