static

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: BSD-3-Clause Imports: 10 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
}

func NewBuilder

func NewBuilder(conf config.Config, theme theme.Theme, hooks Hooks) *Builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) error

func (*Builder) Write

func (b *Builder) Write() error

type Context added in v0.1.2

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

func (*Context) Statics added in v0.1.2

func (ctx *Context) Statics() Statics

type Hook

type Hook interface {
	Static(*Static) *Static
	Statics(Statics) Statics
}

type Hooks

type Hooks []Hook

func (Hooks) Static added in v0.1.2

func (hooks Hooks) Static(static *Static) *Static

func (Hooks) Statics added in v0.1.2

func (hooks Hooks) Statics(statics Statics) Statics

type Static

type Static struct {
	Root      fs.FS
	Name      string
	Path      string
	Permalink string
}

func (Static) IsTheme added in v0.1.2

func (file Static) IsTheme() bool

func (Static) Open added in v0.1.2

func (file Static) Open() (fs.File, error)

type Statics

type Statics []*Static

func (Statics) Lookup

func (statics Statics) Lookup(files []string) Statics

Jump to

Keyboard shortcuts

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