config

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 5 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 {
	Site       SiteConfig    `yaml:"site"`
	Serve      ServeConfig   `yaml:"serve"`
	Publish    PublishConfig `yaml:"publish"`
	RootPath   string
	ThemePath  string
	SourcePath string
	PublicPath string
}

func New

func New(c *cli.Context) (*Config, error)

type PublishConfig

type PublishConfig struct {
	Cmd string `yaml:"cmd"`
}

type ServeConfig

type ServeConfig struct {
	Addr string `yaml:"addr"`
}

type SiteConfig

type SiteConfig struct {
	Title     string `yaml:"title"`
	Introduce string `yaml:"introduce"`
	Limit     int    `yaml:"limit"`
	Theme     string `yaml:"theme"`
	URL       string `yaml:"url"`
	Comment   string `yaml:"comment"`
	Github    string `yaml:"github"`
	Facebook  string `yaml:"facebook"`
	Twitter   string `yaml:"twitter"`
}

Jump to

Keyboard shortcuts

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