Skip to content

Commit

Permalink
docs: add share image and favicon for the docs site
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Dec 26, 2024
1 parent b6b0e41 commit 05ae68d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export default defineConfig({
social: {
github: "https://github.com/jimp-dev/jimp",
},
favicon: "/favicon.png",
components: {
Head: "./src/overwrite-components/head.astro",
},
sidebar: [
{
label: "Docs",
Expand Down
Binary file added packages/docs/public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion packages/docs/public/favicon.svg

This file was deleted.

Binary file added packages/docs/public/share-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions packages/docs/src/overwrite-components/head.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
import type { Props } from "@astrojs/starlight/props";
import Default from "@astrojs/starlight/components/Head.astro";
---

<Default {...Astro.props}>
<slot />
</Default>
<meta name="twitter:image" content="https://jimp-dev.github.io/jimp/share-banner.png">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:image" content="https://jimp-dev.github.io/jimp/share-banner.png">

0 comments on commit 05ae68d

Please sign in to comment.