Skip to content

Commit

Permalink
add: og banner
Browse files Browse the repository at this point in the history
  • Loading branch information
dreyfus92 committed May 9, 2024
1 parent 6aea24f commit d5f3a52
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions www/docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ import starlight from "@astrojs/starlight";

// https://astro.build/config
export default defineConfig({
site: "https://docs.astro-studiocms.xyz/",
integrations: [
starlight({
title: "Astro StudioCMS",
description:
"A dedicated CMS for Astro Studio. Built from the ground up by the Astro community.",
favicon: "/logo-dark.svg",
logo: {
dark: "../assets/logo-light.svg",
Expand All @@ -16,12 +19,11 @@ export default defineConfig({
},
customCss: [
// Relative path to your custom CSS file
'./src/styles/custom.css',
"./src/styles/custom.css",
],
editLink: {
baseUrl:
"https://github.com/astrolicious/studiocms/tree/main/www/docs",
},
baseUrl: "https://github.com/astrolicious/studiocms/tree/main/www/docs",
},
head: [
{
tag: "script",
Expand All @@ -31,6 +33,20 @@ export default defineConfig({
defer: true,
},
},
{
tag: "meta",
attrs: {
property: "og:image",
content: site + "og.png?v=1",
},
},
{
tag: "meta",
attrs: {
property: "twitter:image",
content: site + "og.png?v=1",
},
},
],
sidebar: [
{
Expand Down
Binary file added www/docs/public/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d5f3a52

Please sign in to comment.