Add OG images, sitemap, and fix Dashboard description
- astro-opengraph-images: auto-generates 1200x630 PNG for all 50 pages - Starlight Head override injects og:image via getImagePath helper - site URL enables sitemap-index.xml generation - Fix F1 Dashboard description (action cards, not satellite list)
This commit is contained in:
parent
bcfb86637e
commit
9f2e88ecdd
5 changed files with 1855 additions and 3 deletions
|
|
@ -1,7 +1,10 @@
|
|||
import { defineConfig } from 'astro/config';
|
||||
import starlight from '@astrojs/starlight';
|
||||
import opengraphImages, { presets } from 'astro-opengraph-images';
|
||||
import * as fs from 'fs';
|
||||
|
||||
export default defineConfig({
|
||||
site: 'https://birdcage.warehack.ing',
|
||||
telemetry: false,
|
||||
devToolbar: { enabled: false },
|
||||
integrations: [
|
||||
|
|
@ -15,6 +18,9 @@ export default defineConfig({
|
|||
href: 'https://github.com/saveitforparts/Travler_Rotor',
|
||||
},
|
||||
],
|
||||
components: {
|
||||
Head: './src/components/Head.astro',
|
||||
},
|
||||
customCss: ['./src/styles/custom.css'],
|
||||
sidebar: [
|
||||
{ label: 'Home', link: '/' },
|
||||
|
|
@ -57,5 +63,24 @@ export default defineConfig({
|
|||
},
|
||||
],
|
||||
}),
|
||||
opengraphImages({
|
||||
options: {
|
||||
fonts: [
|
||||
{
|
||||
name: 'Inter',
|
||||
weight: 400,
|
||||
style: 'normal',
|
||||
data: fs.readFileSync('node_modules/@fontsource/inter/files/inter-latin-400-normal.woff'),
|
||||
},
|
||||
{
|
||||
name: 'Inter',
|
||||
weight: 700,
|
||||
style: 'normal',
|
||||
data: fs.readFileSync('node_modules/@fontsource/inter/files/inter-latin-700-normal.woff'),
|
||||
},
|
||||
],
|
||||
},
|
||||
render: presets.blackAndWhite,
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue