Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileContentMismatch on specified filepath ErrFileContentMismatch = failure.StringCode("file content mismatch") )
Functions ¶
This section is empty.
Types ¶
type FrontMatter ¶
type FrontMatter map[string]interface{}
FrontMatter is metadata for MarkdownContent
func (FrontMatter) GetInt ¶
func (f FrontMatter) GetInt(fieldname string) int
func (FrontMatter) GetString ¶
func (f FrontMatter) GetString(fieldname string) string
func (FrontMatter) GetStrings ¶
func (f FrontMatter) GetStrings(fieldname string) []string
type MarkdownContent ¶
type MarkdownContent struct { // FrontMatter is metadata for this content FrontMatter FrontMatter // Body for this content Body string }
MarkdownContent for hugo https://gohugo.io/content-management/formats/
func ParseMarkdownWithYaml ¶
func ParseMarkdownWithYaml(r io.Reader) (*MarkdownContent, error)
ParseMarkdownWithYaml from any reader to make MarkdownContent struct
func (*MarkdownContent) Dump ¶
func (m *MarkdownContent) Dump() (string, error)
Dump to string from this content
Click to show internal directories.
Click to hide internal directories.