Made some changes to how index pages are made

This commit is contained in:
Leon Mika 2025-02-16 14:06:45 +11:00
parent ba12398d2f
commit 573517565d
14 changed files with 259 additions and 56 deletions

View file

@ -15,6 +15,13 @@ const (
DateNameProvenance NameProvenance = iota
)
type PageRole int
const (
NormalPageRole PageRole = iota
IndexPageRole
)
type Bundle struct {
ID int64
SiteID int64
@ -30,11 +37,18 @@ type Page struct {
Name string
NameProvenance NameProvenance
Title string
Role int64
Role PageRole
Body string
State PostState
PageTypeID int64
Props []byte
PublishDate time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
type BundleInfo struct {
BundleID int64
PageCount int
IndexPageID int64
}