Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add og image (#7)

authored by

Felix Schneider and committed by
GitHub
7aba3534 f0ce21c4

+24
+24
docs/astro.config.ts
··· 2 2 import { defineConfig } from "astro/config"; 3 3 import starlightRosePine from "starlight-theme-rose-pine"; 4 4 5 + const site = 6 + (process.env["CONTEXT"] === "production" 7 + ? process.env["URL"] 8 + : process.env["DEPLOY_PRIME_URL"]) ?? 9 + "https://starlight-theme-rose-pine.netlify.app/"; 10 + 5 11 export default defineConfig({ 12 + site, 6 13 integrations: [ 7 14 starlight({ 8 15 favicon: "/favicon.png", ··· 10 17 baseUrl: 11 18 "https://github.com/trueberryless-org/starlight-theme-rose-pine/edit/main/docs/", 12 19 }, 20 + head: [ 21 + { 22 + tag: "meta", 23 + attrs: { 24 + property: "og:image", 25 + content: new URL("og.jpg", site).href, 26 + }, 27 + }, 28 + { 29 + tag: "meta", 30 + attrs: { 31 + property: "og:image:alt", 32 + content: 33 + "Starlight theme heavily inspired by the timeless design of the legacy Astro documentation.", 34 + }, 35 + }, 36 + ], 13 37 plugins: [starlightRosePine()], 14 38 sidebar: [ 15 39 {
docs/public/og.jpg

This is a binary file and will not be displayed.