Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...

    Interface ArticleData

    Full data payload passed to the article HTML template

    interface ArticleData {
        slug: string;
        title: string;
        subtitle: string;
        date: string;
        type: ArticleCategory;
        articleType?: ArticleType;
        readTime?: string;
        lang?: Language;
        locale?: string;
        content: string;
        events?: EventGridItem[];
        watchPoints?: WatchPoint[];
        sources?: string[];
        keywords?: string[];
        topics?: string[];
        tags?: string[];
        sections?: TemplateSection[];
    }
    Index

    Properties

    slug: string
    title: string
    subtitle: string
    date: string
    articleType?: ArticleType

    Optional routing article type used for CSS theming and template registry lookup (e.g. 'week-ahead', 'motions', 'interpellations'). When provided, generateArticleHTML will apply the matching article-type-* CSS class to the <article> element. When omitted, no per-type class is applied — the article keeps base .news-article styling. (type: ArticleCategory values like 'analysis' are not valid ArticleType keys.)

    readTime?: string
    lang?: Language
    locale?: string
    content: string
    events?: EventGridItem[]
    watchPoints?: WatchPoint[]
    sources?: string[]
    keywords?: string[]
    topics?: string[]
    tags?: string[]
    sections?: TemplateSection[]

    Optional extensible sections appended after the main article content. Each entry is rendered as an isolated <div> block, allowing new content types to be injected without changing the template core.