示例#1
0
func NewSite(config *Config) *Site {
	return &Site{c: *config, timer: nitro.Initalize()}
}
示例#2
0
文件: site.go 项目: jaden/hugo
func init() {
	DefaultTimer = nitro.Initalize()
}
示例#3
0
文件: site.go 项目: hugoduncan/hugo
	"bytes"
	"errors"
	"fmt"
	"github.com/spf13/nitro"
	"html/template"
	"io/ioutil"
	"os"
	"path/filepath"
	"strings"
	"time"
	//"sync"
)

const slash = string(os.PathSeparator)

var DefaultTimer = nitro.Initalize()

type Site struct {
	Config      Config
	Pages       Pages
	Tmpl        *template.Template
	Indexes     IndexList
	Files       []string
	Directories []string
	Sections    Index
	Info        SiteInfo
	Shortcodes  map[string]ShortcodeFunc
	timer       *nitro.B
}

type SiteInfo struct {