Documentation
¶
Index ¶
- func Build() int
- func BuildIndex(dir string, nodes []*Node, current *Current)
- func Clean()
- func CompileAsset(config *Config)
- func CompileNodes(db *NodeDB)
- func CreateNode(dir, title string) error
- func Run(addr, public string)
- func Serve(addr, directory string) int
- func Setup(name string) error
- func Watch(dir string) (*fsnotify.Watcher, error)
- type Config
- type Current
- type ListPage
- type Node
- type NodeDB
- type NodeMeta
- type Server
- type Site
- type SiteConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIndex ¶
func CompileAsset ¶ added in v0.0.2
func CompileAsset(config *Config)
func CompileNodes ¶ added in v0.0.2
func CompileNodes(db *NodeDB)
func CreateNode ¶
Types ¶
type Config ¶
type Config struct {
Theme string `"yaml":theme`
Site string `"yaml":site`
// contains filtered or unexported fields
}
func DefaultConfig ¶
func DefaultConfig() *Config
type Node ¶
type Node struct {
Meta *NodeMeta
Body template.HTML
Name string // the filename without extension
Raw string
Path string
BaseDirectory string // the directory without /content part
// contains filtered or unexported fields
}
type NodeDB ¶
func (*NodeDB) ByCategory ¶ added in v0.0.2
func (*NodeDB) Publishable ¶ added in v0.0.2
type SiteConfig ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.