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

ScriptTag Pennington.Head

A <script> tag — JSON-LD, a deferred asset, or an inline bootstrap.

Properties

Defer bool
Emit a defer attribute on an external script.
InlineBody string
Inline script body (e.g. a JSON-LD payload or a theme bootstrap).
Src string
External script URL; mutually exclusive with InlineBody.
Type string
The type attribute (e.g. application/ld+json).

Pennington.Head.ScriptTag

namespace Pennington.Head;

/// A <script> tag — JSON-LD, a deferred asset, or an inline bootstrap.
public record ScriptTag
{
    /// Emit a defer attribute on an external script.
    
public bool Defer { get; set; }
/// Inline script body (e.g. a JSON-LD payload or a theme bootstrap).
public string InlineBody { get; set; }
/// External script URL; mutually exclusive with InlineBody.
public string Src { get; set; }
/// The type attribute (e.g. application/ld+json).
public string Type { get; set; }
}