configuration

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Authors map[string]Author

Functions

This section is empty.

Types

type Author

type Author struct {
	FirstName string `yaml:"firstName"`
	LastName  string `yaml:"lastName"`
	Email     string `yaml:"email"`
	Twitter   string `yaml:"twitter"`
}

type Configuration

type Configuration struct {
	// Authors contains information about the sites authors.
	Authors map[string]Author `yaml:"authors"`
	// Site contains the configuration information for the site.
	Site Site `yaml:"site"`

	// Command Line Options
	LayoutsPath string
	PagesPath   string
	OutputPath  string

	Layouts map[string]layout.Layout

	SiteMap *sitemap.SitemapIndex

	// Other contains custom configuration options.
	Other map[string]interface{} `yaml:"-"`
}

func NewFromFile

func NewFromFile(configurationPath string) (configuration *Configuration, err error)

func (*Configuration) AddPaths

func (c *Configuration) AddPaths(layouts string, pages string, output string)

type Site

type Site struct {
	Name    string `yaml:"name"`
	BaseURL string `yaml:"baseURL"`
}

Jump to

Keyboard shortcuts

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