blog

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BlogKind = tree.NodeKind("blog")

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogCollectionNode

type BlogCollectionNode struct {
	tree.BaseNode
}

func (*BlogCollectionNode) Kind

type BlogEntryParser

type BlogEntryParser struct {
	// contains filtered or unexported fields
}

func NewBlogEntryParser

func NewBlogEntryParser(root string) *BlogEntryParser

func (*BlogEntryParser) Parse

func (pp *BlogEntryParser) Parse(path string, entry fs.FileInfo, context *parser.ParserContext) (tree.Node, error)

func (*BlogEntryParser) Test

func (pp *BlogEntryParser) Test(path string, entry fs.FileInfo) (bool, error)

type BlogNode

type BlogNode struct {
	tree.BaseNode
	Root string
}

func NewBlogNode

func NewBlogNode(path string, root string) *BlogNode

func (*BlogNode) Kind

func (*BlogNode) Kind() tree.NodeKind

type BlogPostAttributes

type BlogPostAttributes struct {
	Title     string   `mapstructure:"title"`
	Tags      []string `mapstructure:"tags"`
	CreatedAt string   `mapstructure:"createdAt"`
}

type BlogPostFrontMatter

type BlogPostFrontMatter struct {
	Title string   `yaml:"title"`
	Tags  []string `yaml:"tags"`
}

type BlogPostNode

type BlogPostNode struct {
	tree.BaseNode
	Parts     tree.PageNameParts
	CreatedAt time.Time
}

func NewBlogPostNode

func NewBlogPostNode(path string, parts tree.PageNameParts, createdAt time.Time) *BlogPostNode

func (*BlogPostNode) Kind

func (*BlogPostNode) Kind() tree.NodeKind

type BlogRenderer

type BlogRenderer struct {
}

func (*BlogRenderer) Close

func (r *BlogRenderer) Close(node tree.Node, context *renderer.RenderContext) error

func (*BlogRenderer) Kind

func (r *BlogRenderer) Kind() tree.NodeKind

func (*BlogRenderer) Open

func (r *BlogRenderer) Open(node tree.Node, context *renderer.RenderContext) error

type Extension

type Extension struct {
}

func (*Extension) Name

func (be *Extension) Name() string

func (*Extension) Register

func (be *Extension) Register(project *sgunk.Project, c map[string]any) error

type PropsBuilder

type PropsBuilder func(props map[string]any)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL