layouts

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Breadcrumbs(breadcrumbs []Breadcrumb) *hb.Tag

Types

type Breadcrumb struct {
	// Icon is optional
	Icon string

	// Name is required
	Name string

	// URL is optional
	URL string
}

type LayoutInterface

type LayoutInterface interface {
	ToHTML() string
}

LayoutInterface is the minimal contract for all page layouts. Any layout that can render itself to HTML satisfies this interface.

type Options

type Options struct {
	AppName         string
	WebsiteSection  string
	Title           string
	Content         hb.TagInterface
	ScriptURLs      []string
	Scripts         []string
	StyleURLs       []string
	Styles          []string
	MetaDescription string
	MetaKeywords    string
	ImageURL        string
	CanonicalURL    string
	DisableNavbar   bool
}

Options defines the options for the layout.

Jump to

Keyboard shortcuts

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