Documentation
¶
Index ¶
- type List
- type Metadata
- type One
- type Option
- func WithHash(enable bool) Option
- func WithMinify(enable bool) Option
- func WithOutputDir(path string) Option
- func WithSourceDir(path string) Option
- func WithTemplateFeed(name string) Option
- func WithTemplateLayout(name string) Option
- func WithTemplateList(name string) Option
- func WithTemplatePost(name string) Option
- func WithTemplates(ts map[string]Template) Option
- func WithThemeDir(path string) Option
- func WithTreeShaking(enable bool) Option
- type Options
- type Post
- type Site
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func WithMinify ¶
func WithOutputDir ¶
func WithSourceDir ¶
func WithTemplateFeed ¶
func WithTemplateLayout ¶
func WithTemplateList ¶
func WithTemplatePost ¶
func WithTemplates ¶
func WithThemeDir ¶
func WithTreeShaking ¶
type Options ¶
type Options struct {
SourceDir string
OutputDir string
ThemeDir string // relative to ThemeDir
TemplateFeed string // relative to ThemeDir e.g. atom.xml
TemplateLayout string // relative to ThemeDir e.g. layout.html
TemplatePost string // relative to ThemeDir e.g. post.html
TemplateList string // relative to ThemeDir e.g. list.html
AssetStyle string // relative to ThemeDir e.g. index.css
AssetScript string // relative to ThemeDir e.g. index.js
Templates map[string]Template
Minify bool
Treeshaking bool
Hash bool
}
Click to show internal directories.
Click to hide internal directories.