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
Colorstring- The
colorattribute used byrel="mask-icon", or null to omit. Hrefstring- The icon URL. A root-relative href is sub-path prefixed at serve/build time; an absolute href is left as-is.
Relstring- The
relattribute; defaults toicon. Sizesstring- The
sizesattribute (e.g.32x32,any), or null to omit. Typestring- The MIME
type; inferred from theHrefextension when null.
Constructors
FaviconLink
#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
Hrefstring- 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; }
}