Documentation
¶
Index ¶
Constants ¶
View Source
const Dir = "config"
Dir is the relative directory for configuration files
Variables ¶
View Source
var SiteFile = "_site.yaml"
SiteFile is the relative path of the Site configuration
Functions ¶
Types ¶
type Section ¶
type Section struct {
Name string `yaml:"name"`
Templates Templates `yaml:"templates"`
Categories []*Category `yaml:"categories"`
Vars Variables `yaml:"vars"`
}
Section for rendering content
func (*Section) HasCategory ¶
HasCategory determines if a Category exists in this Section
type Site ¶
type Site struct {
Name string `yaml:"name"`
Deployment string `yaml:"deploy"`
Vars Variables `yaml:"vars"`
Sections Sections `yaml:"-"`
Dir string `yaml:"-"`
// contains filtered or unexported fields
}
Site is the full configuration for the site
type Templates ¶
type Templates struct {
Content string `yaml:"content"`
Listings []string `yaml:"listings"`
Category string `yaml:"category"`
}
Templates configures the templates used for rendering
Click to show internal directories.
Click to hide internal directories.