site

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const TemplatesRelativePath = "templates"

TODO: probably to be override from the cmd

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

type Site struct {
	Config  config.Config
	Context *context.Context
	// contains filtered or unexported fields
}

func New

func New(source, output, configPath, templatesBasePath string) (*Site, error)

func (*Site) AddSlug

func (s *Site) AddSlug(slug string)

func (*Site) Load

func (s *Site) Load() error

func (Site) Write

func (s Site) Write() error

type Siteable

type Siteable interface {
	Load() error
	Write() error
}

Jump to

Keyboard shortcuts

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