diff --git a/editor.go b/editor.go index 8c49bc6..171866b 100644 --- a/editor.go +++ b/editor.go @@ -10,11 +10,10 @@ import ( "github.com/CalebQ42/darkstorm-server/internal/backend" "github.com/CalebQ42/darkstorm-server/internal/blog" + "github.com/google/uuid" + "go.mongodb.org/mongo-driver/bson" ) -// //go:embed embed -// var editorFS embed.FS - const ( loginPage = `
@@ -32,29 +31,30 @@ const ( name='blog' hx-get='/editor/edit' hx-target='#editor'> - + - {{ range $blog := . }} - + {{ range $blog := .Blogs }} + {{end}}

-

Select a blog!

+
{{.Editor}}
` editorForm = ` - - + +

- + - +

- - + + +
{{.Result}}

- - +