Skip to content

Commit

Permalink
website: Customize Head component
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Jan 16, 2024
1 parent 2640d9b commit 35349df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export default defineConfig({
'@fontsource/inter/latin-600.css',
'./src/tailwind.css'
],
components: {
Head: './src/components/Head.astro',
},
expressiveCode: {
plugins: [pluginCollapsibleSections()],
themes: ['github-dark-dimmed', 'github-light'],
Expand Down
13 changes: 13 additions & 0 deletions website/src/components/Head.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
import type { Props } from '@astrojs/starlight/props';
import Default from '@astrojs/starlight/components/Head.astro';
---

<Default {...Astro.props}><slot /></Default>

<script
defer
src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "48c18fdbf74b460dbfc8bc6a52cf7a83"}'
id='cloudflare'
/>

0 comments on commit 35349df

Please sign in to comment.