hook

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print()

func Register

func Register(name string, creator hookCreator)

Types

type BaseHook

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

type Hook

type Hook interface {
	Name() string
	page.Hook
	static.Hook
}

type Hooks

type Hooks []Hook

func New

func New(conf config.Config, theme theme.Theme) Hooks

func (Hooks) PageHooks

func (hooks Hooks) PageHooks() (result []page.Hook)

func (Hooks) StaticHooks

func (hooks Hooks) StaticHooks() (result []static.Hook)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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