Documentation
¶
Overview ¶
Package frontmatter provides functionality to generate YAML frontmatter headers for Markdown files.
Index ¶
Constants ¶
View Source
const HumanTimeLayout = "2006-01-02 15:04"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomTime ¶
func (*CustomTime) UnmarshalYAML ¶
func (ct *CustomTime) UnmarshalYAML(value *yaml.Node) error
type Document ¶
type Document struct {
Meta Frontmatter
Content []byte
Path string
}
Document represents a fully parsed Markdown file, including its metadata, body content, and file path.
type Frontmatter ¶
type Frontmatter struct {
Title string `yaml:"title"`
Created CustomTime `yaml:"created"`
Updated CustomTime `yaml:"updated"`
Tags []string `yaml:"tags"`
}
Frontmatter represents the metadata parsed from the YAML header of a note.
Click to show internal directories.
Click to hide internal directories.