content

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSummary

func ExtractSummary(body []byte) string

Types

type FrontMatter

type FrontMatter struct {
	Title   string    `yaml:"title"`
	Date    time.Time `yaml:"date"`
	Tags    []string  `yaml:"tags"`
	Slug    string    `yaml:"slug"`
	Author  string    `yaml:"author"`
	Summary string    `yaml:"summary"`
	Ignore  bool      `yaml:"ignore"`
}

type ParsedFile

type ParsedFile struct {
	Front FrontMatter
	Body  []byte
}

func Parse

func Parse(data []byte) (*ParsedFile, error)

Jump to

Keyboard shortcuts

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