Documentation ¶
Index ¶
- Constants
- type BaseNode
- func (s *BaseNode) AddAttrs(key string, attrs any) error
- func (s *BaseNode) AppendChild(n Node)
- func (s *BaseNode) Attributes() (map[string]map[string]any, error)
- func (s *BaseNode) Children() []Node
- func (s *BaseNode) GetAttrs(key string) (map[string]any, bool)
- func (s *BaseNode) IsDir() bool
- func (s *BaseNode) Path() string
- type DefaultDir
- type DefaultPage
- type Node
- type NodeAttributes
- type NodeKind
- type PageFrontMatter
- type PageLinksValue
- type PageMetaValue
- type PageNameParts
- type Site
Constants ¶
View Source
const DefaultNodeKind = NodeKind("site")
View Source
const SiteNodeKind = NodeKind("site")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseNode ¶
type BaseNode struct {
// contains filtered or unexported fields
}
func NewBaseNode ¶
func (*BaseNode) AppendChild ¶
type DefaultDir ¶
type DefaultDir struct {
BaseNode
}
func (*DefaultDir) Kind ¶
func (*DefaultDir) Kind() NodeKind
type DefaultPage ¶
type DefaultPage struct { BaseNode Parts PageNameParts }
func NewDefaultPage ¶
func NewDefaultPage(path string, parts PageNameParts) *DefaultPage
func (*DefaultPage) Kind ¶
func (*DefaultPage) Kind() NodeKind
type NodeAttributes ¶
type NodeAttributes struct {
// contains filtered or unexported fields
}
type PageFrontMatter ¶
type PageFrontMatter struct { Title string `yaml:"title" mapstructure:"title"` Meta []*PageMetaValue `yaml:"meta" mapstructure:"meta"` Links []*PageLinksValue `yaml:"links" mapstructure:"links"` Template string `yaml:"template" mapstructure:"template"` }
type PageLinksValue ¶
type PageMetaValue ¶
type PageNameParts ¶
func GetEntryNameParts ¶
func GetEntryNameParts(name string) (PageNameParts, bool)
Click to show internal directories.
Click to hide internal directories.