sophuwu.site > myweb
idk
sophuwu sophie@skisiel.com
Wed, 04 Dec 2024 00:41:58 +0100
commit

f82b1294744e938beeb9f82213c888041e7a9d53

parent

9b9c8c38c23da81575f60a083939aee549a3e096

3 files changed, 19 insertions(+), 1 deletions(-)

jump to
M .gitignore.gitignore

@@ -1,3 +1,4 @@

build/ webhome/*.sqlite +webhome/*.db webhome/media/*
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.goconfig/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/*")