frontmatter

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeNodeTitle

func ComputeNodeTitle(nodeAst NodeMeta, node *manifest.Node, IndexFileNames []string, hugoEnabled bool)

ComputeNodeTitle Determines node title from its name or its parent name if it is eligible to be index file, and then normalizes either as a title - removing `-`, `_`, `.md` and converting to title case.

func MergeDocumentAndNodeFrontmatter

func MergeDocumentAndNodeFrontmatter(nodeAst NodeMeta, node *manifest.Node)

MergeDocumentAndNodeFrontmatter merges frontmatter from document and node object

func MoveMultiSourceFrontmatterToTopDocument

func MoveMultiSourceFrontmatterToTopDocument(dc []NodeMeta)

MoveMultiSourceFrontmatterToTopDocument moves MultiSource frontmatter to top document

Types

type NodeMeta

type NodeMeta interface {
	Meta() map[string]interface{}
	SetMeta(map[string]interface{})
}

NodeMeta represents node meta operations

Directories

Path Synopsis
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors

Jump to

Keyboard shortcuts

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