config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path added in v1.1.1

func Path(srcDir string) string

Types

type BuildConfig

type BuildConfig struct {
	CopyStatic CopyStaticConfig `yaml:"copy_static"`
}

type CopyStaticConfig

type CopyStaticConfig struct {
	Exclude []string `yaml:"exclude"`
}

type FeedConfig

type FeedConfig struct {
	Enabled     bool   `yaml:"enabled"`
	AuthorName  string `yaml:"author_name"`
	AuthorEmail string `yaml:"author_email"`
	Icon        string `yaml:"icon"`
	Limit       int    `yaml:"limit"`
}

type MinifyConfig

type MinifyConfig struct {
	CSS  bool `yaml:"css"`
	HTML bool `yaml:"html"`
	JS   bool `yaml:"js"`
}

type OptionsHTML

type OptionsHTML struct {
	TabWidth           int  `yaml:"tab_width"`
	WithLineNumbers    bool `yaml:"with_line_numbers"`
	BaseLineNumber     int  `yaml:"base_line_number"`
	LineNumbersInTable bool `yaml:"line_numbers_in_table"`
	WrapLongLines      bool `yaml:"wrap_long_lines"`
}

type SiteConfig

type SiteConfig struct {
	Title       string       `yaml:"title"`
	BaseURL     string       `yaml:"base_url"`
	Language    string       `yaml:"language"`
	Description string       `yaml:"description"`
	Feed        FeedConfig   `yaml:"feed"`
	Minify      MinifyConfig `yaml:"minify"`
	Syntax      SyntaxConfig `yaml:"syntax"`
	Build       BuildConfig  `yaml:"build"`
}

func Load

func Load(path string) (SiteConfig, error)

type SyntaxConfig

type SyntaxConfig struct {
	Theme   string      `yaml:"theme"`
	Options OptionsHTML `yaml:"options"`
}

Jump to

Keyboard shortcuts

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