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

@ -43,6 +43,7 @@ func (s *Service) CreateSite(ctx context.Context, user models.User, name string)
Title: "Welcome to the home page",
Body: "This is the home page",
State: models.PostStatePublished,
Role: models.IndexPageRole,
PublishDate: time.Now(),
CreatedAt: time.Now(),
UpdatedAt: time.Now(),