Astlide API Reference
    Preparing search index...

    Interface DeckContext

    Metadata about the slide currently being rendered.

    interface DeckContext {
        config: {
            author?: string;
            date?: string;
            lang?: string;
            ogImage?: string;
            theme: string;
            title?: string;
        };
        deck: string;
        layout: string;
        slideNumber: number;
        totalSlides: number;
        transition: string;
    }
    Index
    config: {
        author?: string;
        date?: string;
        lang?: string;
        ogImage?: string;
        theme: string;
        title?: string;
    }

    The deck's parsed _config.json (with schema defaults applied).

    Type Declaration

    • Optionalauthor?: string

      Presenter / author name shown on the index page.

    • Optionaldate?: string

      ISO date string (e.g. "2025-06-01") shown on the index page.

    • Optionallang?: string

      The language the deck is written in, as a BCP 47 tag ("ja", "en", "zh-TW"). The deck's pages set it as <html lang> ("en" when omitted). With a PowerPoint template theme that names fonts per language, Japanese, Chinese and Korean text is drawn — and exported to PPTX — in the template's font for this language.

    • OptionalogImage?: string

      The picture shown when a link to the deck is shared (og:image, twitter:image): an absolute URL, or a path from the site root such as /og/my-talk.png (a file in public/).

    • theme: string

      Visual theme applied to all slides in the deck. Built-in themes plus any plugin-contributed theme names are valid. Unknown names are warned at runtime in dev mode.

    • Optionaltitle?: string

      Deck title shown on the index page and browser tab. Falls back to the deck directory name if omitted.

    deck: string

    Deck name (the deck directory / URL segment).

    layout: string

    Resolved slideLayout for this slide.

    slideNumber: number

    1-based index of this slide within the deck.

    totalSlides: number

    Total number of slides in the deck.

    transition: string

    Resolved transition for this slide.