--- import config from "virtual:starlight/user-config" import LanguageSelect from "@astrojs/starlight/components/LanguageSelect.astro" import { Icon } from "@astrojs/starlight/components" const { lang, editUrl, lastUpdated, entry } = Astro.locals.starlightRoute const template = entry.data.template const issueLink = Astro.locals.t("app.footer.issueLink", "Found a bug? Open an issue") const discordLink = Astro.locals.t("app.footer.discordLink", "Join our Discord community") const github = config.social?.find((item) => item.icon === "github") const discord = config.social?.find((item) => item.icon === "discord") --- { template === "doc" && ( ) }