Documentation
¶
Index ¶
- func ExtractJSONFrontmatter(ctx context.Context, r io.Reader) (content []byte, err error)
- func NewJSONFrontmatterFormat() *frontmatter.Format
- func NewJSONFrontmatterFormat2() *frontmatter.Format
- func NewJSONFrontmatterFormat3() *frontmatter.Format
- func UnmarshallJSONFrontMatter(ctx context.Context, r io.Reader, v any) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractJSONFrontmatter ¶
ExtractJSONFrontmatter extracts JSON front matter content from r.
The extractor tries the known JSON front matter formats in order and returns only the extracted front matter bytes.
func NewJSONFrontmatterFormat ¶
func NewJSONFrontmatterFormat() *frontmatter.Format
NewJSONFrontmatterFormat returns the JSON front matter format used by Hugo.
func NewJSONFrontmatterFormat2 ¶
func NewJSONFrontmatterFormat2() *frontmatter.Format
NewJSONFrontmatterFormat2 returns the JSON front matter format used by Hexo.
func NewJSONFrontmatterFormat3 ¶
func NewJSONFrontmatterFormat3() *frontmatter.Format
NewJSONFrontmatterFormat3 returns the JSON front matter format used by the Deno standard front matter package.
Source: https://jsr.io/@std/front-matter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.