docs: adding more share images

This commit is contained in:
Jay V
2025-06-27 20:03:17 -04:00
parent 737146fca1
commit 6a7983a4ea
4 changed files with 44 additions and 17 deletions

View File

@@ -8,12 +8,11 @@ import config from "./config.mjs"
import { rehypeHeadingIds } from "@astrojs/markdown-remark"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
const url = "https://opencode.ai"
const github = "https://github.com/sst/opencode"
// https://astro.build/config
export default defineConfig({
site: url,
site: config.url,
output: "server",
adapter: cloudflare({
imageService: "passthrough",
@@ -41,20 +40,6 @@ export default defineConfig({
href: "/favicon.svg",
},
},
{
tag: "meta",
attrs: {
property: "og:image",
content: `${url}/social-share.png`,
},
},
{
tag: "meta",
attrs: {
property: "twitter:image",
content: `${url}/social-share.png`,
},
},
],
editLink: {
baseUrl: `${github}/edit/master/www/`,
@@ -80,6 +65,7 @@ export default defineConfig({
],
components: {
Hero: "./src/components/Hero.astro",
Head: "./src/components/Head.astro",
Header: "./src/components/Header.astro",
},
plugins: [