config

package
v0.0.0-...-fdec423 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 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 {
	RootDir     string
	SrcDir      string
	TargetDir   string
	LayoutsDir  string
	IncludesDir string
	DataDir     string

	SiteUrl        string
	PostFormat     string
	Lang           string
	HighlightTheme string

	Minify           bool
	MinifyExclusions []string
	LiveReload       bool
	LinkStatic       bool
	IncludeDrafts    bool

	ServerHost string
	ServerPort int
	// contains filtered or unexported fields
}

func Load

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

func LoadDev

func LoadDev(rootDir string, host string, port int, reload bool) (*Config, error)

func (Config) AsContext

func (config Config) AsContext() map[string]interface{}

Jump to

Keyboard shortcuts

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