Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a struct for building a static site.
func (Builder) GetDistPath ¶ added in v0.7.0
GetDistPath returns the dist directory path.
func (*Builder) ReloadConfig ¶ added in v0.7.0
ReloadConfig reloads the config file.
func (*Builder) SetBaseUrl ¶ added in v0.8.0
SetBaseUrl sets the base URL.
type FileData ¶ added in v0.8.0
type FileData struct {
Path string
Content string
FrontMatter YamlFrontMatter
}
FileData is a struct for markdown file data.
type YamlFrontMatter ¶ added in v0.7.0
type YamlFrontMatter struct {
Author string `yaml:"author"`
Title string `yaml:"title"`
PubDatetime string `yaml:"pub_datetime"`
PostSlug string `yaml:"post_slug"`
Description string `yaml:"description"`
Tags []string `yaml:"tags"`
Emoji string `yaml:"emoji"`
OgImage string `yaml:"og_image"`
}
func (*YamlFrontMatter) AsMap ¶ added in v0.7.0
func (y *YamlFrontMatter) AsMap() map[string]interface{}
func (*YamlFrontMatter) SaveTwemojiPng ¶ added in v0.8.0
func (y *YamlFrontMatter) SaveTwemojiPng(w io.Writer) error
func (*YamlFrontMatter) SaveTwemojiSvg ¶ added in v0.8.0
func (y *YamlFrontMatter) SaveTwemojiSvg(w io.Writer) error
Click to show internal directories.
Click to hide internal directories.