config

package
v0.0.0-...-142b142 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigFile = "config.yaml"

DefaultConfigFile is the default name of the configuration file.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Base   string
	Server struct {
		Port    int
		TLSPort int
	}
	Meta struct {
		Country  string
		Title    string
		Subtitle string
		Favicon  string
	}
	Author struct {
		Name  string
		Email string
	}
	Links map[string]string
}

Config represents the blog configuration.

func Load

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

Load loads the blog configuration.

Jump to

Keyboard shortcuts

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