config

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Title               string              `yaml:"title"`
	BaseURL             string              `yaml:"base_url"`
	BasePath            string              `yaml:"-"` // derived from BaseURL, e.g. "/~john"
	Hero                HeroConfig          `yaml:"hero"`
	Nav                 map[string]string   `yaml:"nav"`
	L10n                map[string]string   `yaml:"l10n"`
	FrontMatterDefaults FrontMatterDefaults `yaml:"front-matter-defaults"`
}

func Load

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

type FrontMatterDefaults

type FrontMatterDefaults struct {
	Author string `yaml:"author"`
}

type HeroConfig

type HeroConfig struct {
	Header  string `yaml:"header"`
	Content string `yaml:"content"`
}

Jump to

Keyboard shortcuts

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