30 lines
460 B
V
30 lines
460 B
V
module site
|
|
|
|
@[heap]
|
|
pub struct Site {
|
|
pub mut:
|
|
pages []Page
|
|
sections []Section
|
|
siteconfig SiteConfig
|
|
}
|
|
|
|
pub struct Page {
|
|
pub mut:
|
|
title string
|
|
description string
|
|
draft bool
|
|
position int
|
|
hide_title bool
|
|
src string @[required] // always in format collection:page_name
|
|
path string @[required]
|
|
title_nr int
|
|
slug string
|
|
}
|
|
|
|
pub struct Section {
|
|
pub mut:
|
|
position int
|
|
path string
|
|
label string
|
|
}
|