Documentation ¶
Overview ¶
Package forward allows to create simple redirections for pages that have moved to a new URL.
Index ¶
- type Forward
- func (self *Forward) AddPathMapping(sourcePath, targetPath string) *Forward
- func (self *Forward) Initialize(context *goldsmith.Context) error
- func (*Forward) Name() string
- func (self *Forward) PathMap(pathMap map[string]string) *Forward
- func (self *Forward) SourceKey(key string) *Forward
- func (self *Forward) TargetKey(key string) *Forward
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forward ¶
type Forward struct {
// contains filtered or unexported fields
}
Forward plugin context.
func New ¶
New creates a new instance of the Forward plugin.
func (*Forward) AddPathMapping ¶
AddPathMapping adds a single path mapping between an old path and a new path.
func (*Forward) PathMap ¶
PathMap sets multiple path mappings between old paths and new paths.
func (*Forward) SourceKey ¶
SourceKey sets the metadata key used to access the old path (default: "PathOld").
Click to show internal directories.
Click to hide internal directories.