Documentation ¶
Index ¶
- Variables
- func GetBool(matter *pageparser.ContentFrontMatter, key string) (bool, error)
- func GetContentPath(content string) (string, error)
- func GetString(matter *pageparser.ContentFrontMatter, key string) (string, error)
- func ParsePage(pagePath string) (pageparser.ContentFrontMatter, error)
- func ReadPage(r io.ReadCloser) (pageparser.ContentFrontMatter, error)
- func WritePage(w io.WriteCloser, page *pageparser.ContentFrontMatter) error
- type Config
- type ConfigOption
- type ConfigOptionFn
- type Sites
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyNotFoundError = errors.New("key not set") KeyConversionError = errors.New("failed to convert key type") )
Functions ¶
func GetBool ¶
func GetBool(matter *pageparser.ContentFrontMatter, key string) (bool, error)
func GetContentPath ¶
func GetString ¶
func GetString(matter *pageparser.ContentFrontMatter, key string) (string, error)
func ParsePage ¶
func ParsePage(pagePath string) (pageparser.ContentFrontMatter, error)
func ReadPage ¶
func ReadPage(r io.ReadCloser) (pageparser.ContentFrontMatter, error)
func WritePage ¶
func WritePage(w io.WriteCloser, page *pageparser.ContentFrontMatter) error
Types ¶
type ConfigOption ¶
type ConfigOptionFn ¶
func (ConfigOptionFn) Apply ¶
func (fn ConfigOptionFn) Apply(config *Config) error
Click to show internal directories.
Click to hide internal directories.