theme

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoTemplates is returned by Templates when no page
	// templates have been found by the walk matcher.
	ErrNoTemplates = errors.New("no page templates found")
	// ErrNoLayouts is returned by Layouts when no page
	// layouts have been found by the walk matcher.
	ErrNoLayouts = errors.New("no page templates found")
	// ErrNoTheme is returned by Exists when no theme
	// has been found.
	ErrNoTheme = errors.New("no theme found")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	List(activeTheme string) ([]*domain.ThemeConfig, error)
	Find(theme string) (*domain.ThemeConfig, error)
	Exists(theme string) bool
	Templates(theme string) (domain.Templates, error)
	Layouts(theme string) (domain.Layouts, error)
	Screenshot(theme string, file string) ([]byte, domain.Mime, error)
}

Repository defines methods for the theme.

func New

func New() Repository

New

Creates a new SiteRepository.

Jump to

Keyboard shortcuts

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