builder

package
v0.0.0-...-4be1acc Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(config config.Config)

Types

type MarkdownData

type MarkdownData struct {
	Frontmatter Matter
	Content     []byte
	HTMLContent template.HTML
	Path        string
}

func RenderAllMDToHTML

func RenderAllMDToHTML(mds []MarkdownData) []MarkdownData

type Matter

type Matter struct {
	Title   string    `yaml:"title"`
	Author  string    `yaml:"author"`
	Tags    []string  `yaml:"tags"`
	Date    time.Time `yaml:"date"`
	Type    contentType
	Slug    postSlug
	IsDraft bool
}

type SiteData

type SiteData struct {
	Title  string
	Author string
	Pages  []MarkdownData
}

Jump to

Keyboard shortcuts

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