idk
sophuwu sophie@skisiel.com
Wed, 04 Dec 2024 00:41:58 +0100
3 files changed,
19 insertions(+),
1 deletions(-)
A
blogs.go
@@ -0,0 +1,17 @@
+package main + +import "time" + +type BlogPost struct { + BlogID string `storm:"blogID"` + Title string `storm:"title"` + Date time.Time `storm:"date"` + Summary string `storm:"summary"` +} +type BlogComment struct { + CommentID string `storm:"commentID"` + BlogID string `storm:"blogID"` + Comment string `storm:"comment"` + Date time.Time `storm:"date"` + Name string `storm:"name"` +}
M
config/config.go
→
config/config.go
@@ -54,7 +54,7 @@ WebRoot = mm["webroot"]
} else { WebRoot = filepath.Join(filepath.Dir(os.Args[1]), mm["webroot"]) } - DbPath = path("stuff.sqlite") + DbPath = path("data.db") StaticPath = path("static") MediaPath = path("media") Templates = path("templates/*")