TaxonomyItem Pennington.Taxonomy
One content item discovered by the taxonomy walker, paired with the URL of the page that owns it. Surfaces the parsed front matter so term pages can render titles, dates, summaries, and any other field the consumer needs without re-reading the source file.
Properties
FrontMatterTFrontMatter- Parsed front matter from the source markdown file.
UrlUrlPath- URL of the page the front matter belongs to.
Constructors
TaxonomyItem
#public TaxonomyItem`1(TFrontMatter FrontMatter, UrlPath Url)
One content item discovered by the taxonomy walker, paired with the URL of the page that owns it. Surfaces the parsed front matter so term pages can render titles, dates, summaries, and any other field the consumer needs without re-reading the source file.
Parameters
FrontMatterTFrontMatter- Parsed front matter from the source markdown file.
UrlUrlPath- URL of the page the front matter belongs to.
Pennington.Taxonomy.TaxonomyItem
namespace Pennington.Taxonomy;
/// One content item discovered by the taxonomy walker, paired with the URL of the page that owns it. Surfaces the parsed front matter so term pages can render titles, dates, summaries, and any other field the consumer needs without re-reading the source file.
public record TaxonomyItem
{
/// Parsed front matter from the source markdown file.
public TFrontMatter FrontMatter { get; set; }
/// One content item discovered by the taxonomy walker, paired with the URL of the page that owns it. Surfaces the parsed front matter so term pages can render titles, dates, summaries, and any other field the consumer needs without re-reading the source file.
public TaxonomyItem`1(TFrontMatter FrontMatter, UrlPath Url)
;
/// URL of the page the front matter belongs to.
public UrlPath Url { get; set; }
}