config

package
v0.0.0-...-36c91e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BannerConfig

type BannerConfig struct {
	Text      string   `yaml:"text"`
	Font      string   `yaml:"font"`
	Colors    []string `yaml:"colors"`
	ColorType string   `yaml:"color_type"`
}

type BlogConfig

type BlogConfig struct {
	PostsDir        string `yaml:"posts_dir"`
	DateFormat      string `yaml:"date_format"`
	ShowReadingTime bool   `yaml:"show_reading_time"`
	ShowTags        bool   `yaml:"show_tags"`
	CodeStyleDark   string `yaml:"code_style_dark"`
	CodeStyleLight  string `yaml:"code_style_light"`
}

type BuildConfig

type BuildConfig struct {
	OutputDir string `yaml:"output_dir"`
}

type Config

type Config struct {
	Site     SiteConfig     `yaml:"site"`
	Theme    string         `yaml:"theme"`
	Nav      []NavItem      `yaml:"nav"`
	Terminal TerminalConfig `yaml:"terminal"`
	Blog     BlogConfig     `yaml:"blog"`
	Footer   FooterConfig   `yaml:"footer"`
	Build    BuildConfig    `yaml:"build"`
}

func Load

func Load(path string) (*Config, error)

type FooterConfig

type FooterConfig struct {
	Text  string       `yaml:"text"`
	Links []FooterLink `yaml:"links"`
}
type FooterLink struct {
	Label string `yaml:"label"`
	URL   string `yaml:"url"`
}

type LayoutConfig

type LayoutConfig struct {
	Position string `yaml:"position"`
	Input    string `yaml:"input"`
	Split    int    `yaml:"split"`
}
type NavItem struct {
	Label string `yaml:"label"`
	Path  string `yaml:"path"`
}

type SiteConfig

type SiteConfig struct {
	Title       string `yaml:"title"`
	Description string `yaml:"description"`
	Author      string `yaml:"author"`
	BaseURL     string `yaml:"base_url"`
	Language    string `yaml:"language"`
}

type TerminalConfig

type TerminalConfig struct {
	Prompt   string       `yaml:"prompt"`
	WhoAmI   string       `yaml:"whoami"`
	Hint     string       `yaml:"hint"`
	Layout   LayoutConfig `yaml:"layout"`
	ASCIIArt string       `yaml:"ascii_art"`
	Banner   BannerConfig `yaml:"banner"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL