build

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is a struct for building a static site.

func NewBuilder

func NewBuilder(config *config.Config) *Builder

NewBuilder returns a new Builder.

func (Builder) GetDistPath added in v0.7.0

func (b Builder) GetDistPath() string

GetDistPath returns the dist directory path.

func (*Builder) ReloadConfig added in v0.7.0

func (b *Builder) ReloadConfig() error

ReloadConfig reloads the config file.

func (*Builder) Run

func (b *Builder) Run() error

type YamlFrontMatter added in v0.7.0

type YamlFrontMatter struct {
	Author      string   `yaml:"author"`
	Title       string   `yaml:"title"`
	PubDatetime string   `yaml:"pubDatetime"`
	PostSlug    string   `yaml:"postSlug"`
	Description string   `yaml:"description"`
	Tags        []string `yaml:"tags"`
	Emoji       string   `yaml:"emoji"`
}

func (*YamlFrontMatter) AsMap added in v0.7.0

func (y *YamlFrontMatter) AsMap() map[string]interface{}

Jump to

Keyboard shortcuts

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