Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
func SaveConfig(config *BlogConfig, filename string) error
Types ¶
type BlogConfig ¶
type BlogConfig struct { // filesystem data Root string `json:"root"` Output string `json:"output"` // author and site data Author string `json:"Author"` Email string `json:"Email"` Domain string `json:"Domain"` Title string `json:"Title"` SubTitle string `json:"SubTitle"` // meta data used within bloghead Blueprints map[string]string `json:"blueprints"` Articles []string `json:"articles"` }
Blog config corresponds to the configuration file used to initialize the bh instance. This file also contains saved state for the site, such as blueprint file paths sss
func ReadConfig ¶
func ReadConfig(filename string) (*BlogConfig, error)
type BlogHead ¶
BlogHead keeps track of everything going on during the site's build process.
func (*BlogHead) Create ¶
Create a new template at the specified location This will create a new 'blueprint' file which will be copied when a new page is added using the 'add' command.
func (*BlogHead) SetMetaValue ¶
Update the metadata value for this bloghead instance and save configuration. If the key is not found, an error will occur
func (*BlogHead) Start ¶
Start compiling pages found in the root directory Ignores the directory named '.templates'
Click to show internal directories.
Click to hide internal directories.