frontmatter

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package frontmatter provides YAML frontmatter parsing from markdown files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(file file.File, data any) (string, error)

Load parses frontmatter from the file into data and returns the remaining content.

func LoadRaw

func LoadRaw(file file.File) (yamlBytes []byte, body string, err error)

LoadRaw reads a frontmatter file and returns the raw YAML bytes and body without decoding into a struct. Used by the inheritance pipeline which needs yaml.Node-level access before struct decode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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