hugocontext

package
v0.136.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() goldmark.Extender

func Wrap

func Wrap(b []byte, pid uint64) string

Wrap wraps the given byte slice in a Hugo context that used to determine the correct Page in .RenderShortcodes.

Types

type HugoContext

type HugoContext struct {
	ast.BaseInline

	Closing bool

	// Internal page ID. Not persisted.
	Pid uint64
}

HugoContext is a node that represents a Hugo context.

func (*HugoContext) Dump

func (n *HugoContext) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*HugoContext) Kind

func (h *HugoContext) Kind() ast.NodeKind

Jump to

Keyboard shortcuts

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