personal-website/apps/blogviewer/blogfile.go

19 lines
323 B
Go
Raw Normal View History

2023-04-29 13:58:39 +00:00
package blogviewer
2023-06-06 23:17:29 +00:00
import "html/template"
2023-04-29 13:58:39 +00:00
type BlogFileData struct {
2023-05-18 01:57:44 +00:00
Header string `bson:"header"`
Blocks []*Block `bson:"blocks"`
2023-04-29 13:58:39 +00:00
}
2023-06-06 22:49:26 +00:00
type Block struct {
Type string `bson:"type"`
Data []string `bson:"data"`
}
2023-06-06 23:17:29 +00:00
type RenderedBlock struct {
Type string `bson:"type"`
Data []template.HTML `bson:"data"`
}