Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...

    Assemble the article YAML front-matter block. Inputs are caller- supplied โ€” the aggregator owns title/description sourcing and date formatting. The returned string ends with a trailing newline so the caller can concatenate the body verbatim.

    interface FrontMatterFields {
    ย ย ย ย title?: string;
    ย ย ย ย description?: string;
    ย ย ย ย keywords?: string;
    ย ย ย ย date: string;
    ย ย ย ย subfolder: string;
    ย ย ย ย slug?: string;
    ย ย ย ย source_folder: string;
    ย ย ย ย generated_at: string;
    ย ย ย ย language?: string;
    ย ย ย ย layout?: string;
    }
    Index
    title?: string

    Emitted by the aggregator in-memory but no longer written to the article.md YAML front-matter (post-2026-05-24 SEO contract). The renderer now sources <title> directly from executive-brief.md via deriveBriefSeoOverrides in scripts/render-lib/article.ts. Field remains in the interface so the aggregator can return it in its in-memory result object for the test-article-headers CLI and unit tests.

    description?: string

    Emitted by the aggregator in-memory but no longer written to the article.md YAML front-matter. See FrontMatterFields.title.

    keywords?: string

    Emitted by the aggregator in-memory but no longer written to the article.md YAML front-matter. The renderer now derives keyword entities directly from executive-brief.md via extractBriefEntities / flattenBriefEntities. See FrontMatterFields.title.

    date: string
    subfolder: string
    slug?: string

    Auto-derived from ${date}-${subfolder} if the caller omits it.

    source_folder: string
    generated_at: string
    language?: string
    layout?: string