Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultParser ¶
type DefaultParser struct { }
func (*DefaultParser) Parse ¶
func (pp *DefaultParser) Parse(path string, entry fs.FileInfo, context *ParserContext) (tree.Node, error)
type EntryParser ¶
type PageAttributes ¶
type PageAttributes struct { Title string `mapstructure:"title"` Meta []*tree.PageMetaValue `mapstructure:"meta"` Links []*tree.PageLinksValue `mapstructure:"links"` Template string `mapstructure:"template"` }
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...ParserOption) *Parser
type ParserContext ¶
type ParserContext struct {
// contains filtered or unexported fields
}
func (*ParserContext) FrontMatter ¶
func (pc *ParserContext) FrontMatter(path string, output any) error
type ParserOption ¶
type ParserOptionFunc ¶
func WithEntryParsers ¶
func WithEntryParsers(parsers ...EntryParser) ParserOptionFunc
func WithSiteFS ¶
func WithSiteFS(siteFS afero.Fs) ParserOptionFunc
func (ParserOptionFunc) Apply ¶
func (apply ParserOptionFunc) Apply(p *Parser) error
Click to show internal directories.
Click to hide internal directories.