hugolite

package
v0.0.0-...-b45e732 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FNV32a

func FNV32a(v any) (int, error)

func InterfaceToConfig

func InterfaceToConfig(in any, format Format, w io.Writer) error

func InterfaceToFrontMatter

func InterfaceToFrontMatter(in any, format Format, w io.Writer) error

Types

type ContentFrontMatter

type ContentFrontMatter struct {
	Content           []byte
	FrontMatter       map[string]any
	FrontMatterFormat Format
}

func ParseFrontMatterAndContent

func ParseFrontMatterAndContent(r io.Reader) (*ContentFrontMatter, error)

type Format

type Format string

Format defines a supported frontmatter type in Hugo.

const (
	TOML Format = "toml"
	YAML Format = "yaml"
)

Jump to

Keyboard shortcuts

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