Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FMInvalidTypeError ¶
FMInvalidTypeError is an error that means the front-matter type is invalid.
func NewFMInvalidTypeError ¶
func NewFMInvalidTypeError(fmKey, wantType string, got interface{}) *FMInvalidTypeError
func (*FMInvalidTypeError) Error ¶
func (e *FMInvalidTypeError) Error() string
type FMNotExistError ¶
type FMNotExistError struct {
Key string
}
FMNotExistError is an error that means the front-matter key/value is not exists in the content file.
func NewFMNotExistError ¶
func NewFMNotExistError(fmKey string) *FMNotExistError
func (*FMNotExistError) Error ¶
func (e *FMNotExistError) Error() string
type FrontMatter ¶
func ParseFrontMatter ¶
func ParseFrontMatter(filename string) (*FrontMatter, error)
ParseFrontMatter parses the frontmatter of the specified Hugo content.
Click to show internal directories.
Click to hide internal directories.