EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...

    Optional inputs to clampTitleForSurface.

    siteTitle is the brand suffix (e.g. "EU Parliament Monitor") and separator is the localized glue (e.g. " | " / " ・ " / " ׀ "). When both are provided the function tries to keep the brand suffix inside the budget; when the article title alone already fills the budget the suffix is dropped (better SERP outcome than a truncated headline followed by a clipped brand).

    shortSiteTitle is the optional fallback used when the full brand suffix can't fit but a shorter variant would (e.g. "EPM" for CJK).

    interface TitleSurfaceOptions {
        siteTitle?: string;
        shortSiteTitle?: string;
        separator?: string;
    }
    Index

    Properties

    siteTitle?: string
    shortSiteTitle?: string
    separator?: string