package parser

import "github.com/gohugoio/hugo/parser"

Index

Functions

func InterfaceToConfig

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

func InterfaceToFrontMatter

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

Types

type LowerCaseCamelJSONMarshaller

type LowerCaseCamelJSONMarshaller struct {
	Value any
}

Code adapted from https://gist.github.com/piersy/b9934790a8892db1a603820c0c23e4a7

func (LowerCaseCamelJSONMarshaller) MarshalJSON

func (c LowerCaseCamelJSONMarshaller) MarshalJSON() ([]byte, error)

Source Files

frontmatter.go lowercase_camel_json.go

Directories

PathSynopsis
parser/metadecoders
parser/pageparserPackage pageparser provides a parser for Hugo content files (Markdown, HTML etc.) in Hugo.
Version
v0.97.3
Published
Apr 18, 2022
Platform
darwin/amd64
Imports
11 packages
Last checked
31 minutes ago

Tools for package owners.