diff --git a/website/astro.config.mjs b/website/astro.config.mjs index 663a7d32..cc2c8e46 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -3,14 +3,20 @@ import starlight from "@astrojs/starlight"; import { defineConfig } from "astro/config"; import pagefindResources from "./src/integrations/pagefind-resources"; +const site = "https://awesome-copilot.github.com/"; +const siteDescription = + "Community-contributed agents, instructions, and skills to enhance your GitHub Copilot experience"; +const socialImageUrl = new URL("/images/social-image.png", site).toString(); + // https://astro.build/config export default defineConfig({ - site: "https://awesome-copilot.github.com/", + site, base: "/", output: "static", integrations: [ starlight({ title: "Awesome GitHub Copilot", + description: siteDescription, social: [ { icon: "github", @@ -18,6 +24,29 @@ export default defineConfig({ href: "https://github.com/github/awesome-copilot", }, ], + head: [ + { + tag: "meta", + attrs: { + property: "og:image", + content: socialImageUrl, + }, + }, + { + tag: "meta", + attrs: { + property: "og:image:alt", + content: siteDescription, + }, + }, + { + tag: "meta", + attrs: { + name: "twitter:image", + content: socialImageUrl, + }, + }, + ], customCss: ["./src/styles/starlight-overrides.css", "./src/styles/global.css"], editLink: { baseUrl: diff --git a/website/src/pages/index.astro b/website/src/pages/index.astro index 9953141d..adb907c3 100644 --- a/website/src/pages/index.astro +++ b/website/src/pages/index.astro @@ -5,7 +5,28 @@ import Modal from '../components/Modal.astro'; const base = import.meta.env.BASE_URL; --- - +