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 at the same URL with .md appended. 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

LinkTag Pennington.Head

A <link> tag (canonical, alternate, stylesheet, preload, verification).

Properties

Attributes ImmutableArray<KeyValuePair<string, string>>
Extra attributes in emission order (e.g. type, title, hreflang, as, crossorigin).
Href string
The href attribute.
Rel string
The rel attribute.

Constructors

LinkTag

#
public LinkTag(string Rel, string Href)

A <link> tag (canonical, alternate, stylesheet, preload, verification).

Parameters

Rel string
The rel attribute.
Href string
The href attribute.

Pennington.Head.LinkTag

namespace Pennington.Head;

/// A <link> tag (canonical, alternate, stylesheet, preload, verification).
public record LinkTag
{
    /// Extra attributes in emission order (e.g. type, title, hreflang, as, crossorigin).
    
public ImmutableArray<KeyValuePair<string, string>> Attributes { get; set; }
/// The href attribute.
public string Href { get; set; }
/// A <link> tag (canonical, alternate, stylesheet, preload, verification).
public LinkTag(string Rel, string Href)
; /// The rel attribute.
public string Rel { get; set; }
}