This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

TaxonomyTerm Pennington.Taxonomy

One value of the taxonomy axis along with every content item that projects to it. Razor pages registered with TermPage receive an instance of this type as their Term parameter; index pages receive the full IReadOnlyList as their Terms parameter.

Properties

Items ImmutableList<TaxonomyItem<TFrontMatter>>
Every content item that projected to this key, in the order they were discovered.
Key TKey
The raw key value (the input to SlugFor).
Label string
Human-readable label. Defaults to the key's string form; override via LabelFor.
Slug string
URL-safe slug; the last segment of Url.
Url UrlPath
Absolute URL of this term page (e.g. /cuisine/italian/).

Constructors

TaxonomyTerm

#
public TaxonomyTerm`2(TKey Key, string Label, string Slug, UrlPath Url, ImmutableList<TaxonomyItem<TFrontMatter>> Items)

One value of the taxonomy axis along with every content item that projects to it. Razor pages registered with TermPage receive an instance of this type as their Term parameter; index pages receive the full IReadOnlyList as their Terms parameter.

Parameters

Key TKey
The raw key value (the input to SlugFor).
Label string
Human-readable label. Defaults to the key's string form; override via LabelFor.
Slug string
URL-safe slug; the last segment of Url.
Url UrlPath
Absolute URL of this term page (e.g. /cuisine/italian/).
Items ImmutableList<TaxonomyItem<TFrontMatter>>
Every content item that projected to this key, in the order they were discovered.

Pennington.Taxonomy.TaxonomyTerm

namespace Pennington.Taxonomy;

/// One value of the taxonomy axis along with every content item that projects to it. Razor pages registered with TermPage receive an instance of this type as their Term parameter; index pages receive the full IReadOnlyList as their Terms parameter.
public record TaxonomyTerm
{
    /// Every content item that projected to this key, in the order they were discovered.
    
public ImmutableList<TaxonomyItem<TFrontMatter>> Items { get; set; }
/// The raw key value (the input to SlugFor).
public TKey Key { get; set; }
/// Human-readable label. Defaults to the key's string form; override via LabelFor.
public string Label { get; set; }
/// URL-safe slug; the last segment of Url.
public string Slug { get; set; }
/// One value of the taxonomy axis along with every content item that projects to it. Razor pages registered with TermPage receive an instance of this type as their Term parameter; index pages receive the full IReadOnlyList as their Terms parameter.
public TaxonomyTerm`2(TKey Key, string Label, string Slug, UrlPath Url, ImmutableList<TaxonomyItem<TFrontMatter>> Items)
; /// Absolute URL of this term page (e.g. /cuisine/italian/).
public UrlPath Url { get; set; }
}