19 lines
323 B
Go
19 lines
323 B
Go
package blogviewer
|
|
|
|
import "html/template"
|
|
|
|
type BlogFileData struct {
|
|
Header string `bson:"header"`
|
|
Blocks []*Block `bson:"blocks"`
|
|
}
|
|
|
|
type Block struct {
|
|
Type string `bson:"type"`
|
|
Data []string `bson:"data"`
|
|
}
|
|
|
|
type RenderedBlock struct {
|
|
Type string `bson:"type"`
|
|
Data []template.HTML `bson:"data"`
|
|
}
|