Documentation ¶
Overview ¶
Package breadcrumbs generates metadata required to enable breadcrumb navigation. This is particularly helpful for sites that have deep hierarchies which may be otherwise confusing to visitors.
Index ¶
- type Breadcrumbs
- func (self *Breadcrumbs) CrumbsKey(key string) *Breadcrumbs
- func (self *Breadcrumbs) Finalize(context *goldsmith.Context) error
- func (*Breadcrumbs) Initialize(context *goldsmith.Context) error
- func (*Breadcrumbs) Name() string
- func (self *Breadcrumbs) NameKey(key string) *Breadcrumbs
- func (self *Breadcrumbs) ParentKey(key string) *Breadcrumbs
- func (self *Breadcrumbs) Process(context *goldsmith.Context, inputFile *goldsmith.File) error
- type Crumb
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breadcrumbs ¶
type Breadcrumbs struct {
// contains filtered or unexported fields
}
Breadcrumbs chainable plugin context.
func (*Breadcrumbs) CrumbsKey ¶
func (self *Breadcrumbs) CrumbsKey(key string) *Breadcrumbs
CrumbsKey sets the metadata key used to store information about crumbs (default: "Crumbs").
func (*Breadcrumbs) Initialize ¶
func (*Breadcrumbs) Initialize(context *goldsmith.Context) error
func (*Breadcrumbs) Name ¶
func (*Breadcrumbs) Name() string
func (*Breadcrumbs) NameKey ¶
func (self *Breadcrumbs) NameKey(key string) *Breadcrumbs
NameKey sets the metadata key used to access the crumb name (default: "CrumbName"). Crumb names must be globally unique within any given website.
func (*Breadcrumbs) ParentKey ¶
func (self *Breadcrumbs) ParentKey(key string) *Breadcrumbs
ParentKey sets the metadata key used to access the parent name (default: "CrumbParent").
Click to show internal directories.
Click to hide internal directories.