vars

package
v0.0.0-...-c336e2e Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version is version number of pugo.static
	Version = "1.0.0"
)

Variables

View Source
var (
	// MetaFile is filename of metadata
	MetaFile = "meta.toml"

	// FrontMetaSeperator is seperator of frontmeta and post content
	FrontMetaSeperator = "```"

	// FrontMetaTypes contains types and prefixes of front meta
	FrontMetaTypes = map[string]string{
		"toml": "toml",
	}

	// ContentTimeLayouts is time layouts for posts and pages
	ContentTimeLayouts = []string{
		"2006-01-02",
		"2006-01-02 15:04",
		"2006-01-02 15:04:05",
	}

	// ContentBriefSeperator is seperator of brief and all content
	ContentBriefSeperator = "<!--more-->"
)
View Source
var (
	// Config is default global config
	Config = ConfigData{
		PageDir:             "page",
		PostDir:             "post",
		ThemeDir:            "theme",
		LangDir:             "lang",
		MediaDir:            "media",
		DstDir:              "dest",
		PostSizePerPage:     5,
		PostTemplateFile:    "post.html",
		PageTemplateFile:    "page.html",
		IndexTemplateFile:   "index.html",
		ArchiveTemplateFile: "archive.html",
	}
)
View Source
var (
	// ThemeMetadataFile is default theme's metadata filename
	ThemeMetadataFile = "theme.toml"
)

Functions

This section is empty.

Types

type ConfigData

type ConfigData struct {
	PostDir             string
	PageDir             string
	ThemeDir            string
	LangDir             string
	MediaDir            string
	PostSizePerPage     int
	PostTemplateFile    string
	PageTemplateFile    string
	IndexTemplateFile   string
	ArchiveTemplateFile string
	DstDir              string
}

ConfigData is configuration data

Jump to

Keyboard shortcuts

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