mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 10:17:26 +00:00
docs: social share
This commit is contained in:
parent
8edbb74352
commit
0e0770921e
1 changed files with 25 additions and 4 deletions
|
@ -8,14 +8,12 @@ import config from "./config.mjs"
|
||||||
import { rehypeHeadingIds } from "@astrojs/markdown-remark"
|
import { rehypeHeadingIds } from "@astrojs/markdown-remark"
|
||||||
import rehypeAutolinkHeadings from "rehype-autolink-headings"
|
import rehypeAutolinkHeadings from "rehype-autolink-headings"
|
||||||
|
|
||||||
|
const url = "https://opencode.ai"
|
||||||
const github = "https://github.com/sst/opencode"
|
const github = "https://github.com/sst/opencode"
|
||||||
const headerLinks = [
|
|
||||||
{ name: "Docs", url: "/docs/" },
|
|
||||||
{ name: "GitHub", url: github },
|
|
||||||
]
|
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
site: url,
|
||||||
output: "server",
|
output: "server",
|
||||||
adapter: cloudflare({
|
adapter: cloudflare({
|
||||||
imageService: "passthrough",
|
imageService: "passthrough",
|
||||||
|
@ -37,6 +35,29 @@ export default defineConfig({
|
||||||
social: [
|
social: [
|
||||||
{ icon: "github", label: "GitHub", href: config.github },
|
{ icon: "github", label: "GitHub", href: config.github },
|
||||||
],
|
],
|
||||||
|
head: [
|
||||||
|
{
|
||||||
|
tag: "link",
|
||||||
|
attrs: {
|
||||||
|
rel: "icon",
|
||||||
|
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: {
|
editLink: {
|
||||||
baseUrl: `${github}/edit/master/www/`,
|
baseUrl: `${github}/edit/master/www/`,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue