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

FaviconLink Pennington.Favicon

One icon <link>. The generic Rel/Href/Type/ Sizes/Color model covers rel="icon" (multiple sizes/types), apple-touch-icon, mask-icon, and manifest without special-casing.

Properties

Color string
The color attribute used by rel="mask-icon", or null to omit.
Href string
The icon URL. A root-relative href is sub-path prefixed at serve/build time; an absolute href is left as-is.
Rel string
The rel attribute; defaults to icon.
Sizes string
The sizes attribute (e.g. 32x32, any), or null to omit.
Type string
The MIME type; inferred from the Href extension when null.

Constructors

#
public FaviconLink(string Href)

One icon <link>. The generic Rel/Href/Type/ Sizes/Color model covers rel="icon" (multiple sizes/types), apple-touch-icon, mask-icon, and manifest without special-casing.

Parameters

Href string
The icon URL. A root-relative href is sub-path prefixed at serve/build time; an absolute href is left as-is.

Pennington.Favicon.FaviconLink

namespace Pennington.Favicon;

/// One icon <link>. The generic Rel/Href/Type/ Sizes/Color model covers rel="icon" (multiple sizes/types), apple-touch-icon, mask-icon, and manifest without special-casing.
public record FaviconLink
{
    /// The color attribute used by rel="mask-icon", or null to omit.
    
public string Color { get; set; }
/// One icon <link>. The generic Rel/Href/Type/ Sizes/Color model covers rel="icon" (multiple sizes/types), apple-touch-icon, mask-icon, and manifest without special-casing.
public FaviconLink(string Href)
; /// The icon URL. A root-relative href is sub-path prefixed at serve/build time; an absolute href is left as-is.
public string Href { get; set; }
/// The rel attribute; defaults to icon.
public string Rel { get; set; }
/// The sizes attribute (e.g. 32x32, any), or null to omit.
public string Sizes { get; set; }
/// The MIME type; inferred from the Href extension when null.
public string Type { get; set; }
}