18 lines
330 B
Go
18 lines
330 B
Go
package domain
|
|
|
|
import "golang.org/x/text/language"
|
|
|
|
type Page struct {
|
|
Language language.Tag
|
|
Params map[string]any
|
|
File File
|
|
Description string
|
|
Title string
|
|
Content []byte
|
|
Resources Resources
|
|
}
|
|
|
|
func (p Page) IsHome() bool {
|
|
return p.File.dir == "./" && p.File.translationBaseName == "index"
|
|
}
|