validation

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePermalinkAliases

func ValidatePermalinkAliases(pages []*content.Page) []error

ValidatePermalinkAliases checks for conflicting permalink:false + aliases. A page with permalink:false should not have aliases.

Types

type Conflict

type Conflict struct {
	Path    string
	Sources []string
}

Conflict represents two or more sources targeting the same output path.

func DetectConflicts

func DetectConflicts(entries []OutputPathEntry) ([]Conflict, error)

DetectConflicts scans all output path entries and returns any conflicts found.

type OutputPathEntry

type OutputPathEntry struct {
	Path   string
	Source string
}

OutputPathEntry represents a single claimed output path and its source.

Jump to

Keyboard shortcuts

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