Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Verbose defines if debug logs should be shown
Verbose bool `yaml:"verbose"`
// InputFolder is the directory where input posts are located.
InputFolder string `yaml:"input_folder"`
// OutputFolder is the directory where the generated website will be placed.
OutputFolder string `yaml:"output_folder"`
// StaticFolder is the directory containing static assets (CSS, JS, images)
StaticFolder string `yaml:"static_folder"`
// TemplateDir is the directory containing custom templates (optional)
// If not specified, default templates will be used from templates/defaults/
TemplateDir string `yaml:"template_dir"`
// Site contains metadata about the website
Site SiteMetadata `yaml:"site"`
// PostsPerPage defines how many posts to show per page (pagination)
PostsPerPage int `yaml:"posts_per_page"`
// BlogPath is the URL path for the blog (e.g., "/blog")
BlogPath string `yaml:"blog_path"`
}
Config represents the configuration structure for the application.
func ParseConfig ¶
ParseConfig reads a YAML configuration file and returns a Config struct.
func ParseConfigFromBytes ¶ added in v0.6.0
ParseConfigFromBytes parses configuration from byte slice (useful for testing)
Click to show internal directories.
Click to hide internal directories.