mirror of
https://github.com/gogrlx/docs.grlx.dev.git
synced 2026-04-02 03:08:53 -07:00
added full View Transitions for reduced image flicker
This commit is contained in:
@@ -6,6 +6,7 @@ export default defineConfig({
|
|||||||
integrations: [
|
integrations: [
|
||||||
starlight({
|
starlight({
|
||||||
title: 'grlx.dev',
|
title: 'grlx.dev',
|
||||||
|
components: { Head: './src/components/Transitions.astro'},
|
||||||
logo: { src: './src/assets/grlx.webp' },
|
logo: { src: './src/assets/grlx.webp' },
|
||||||
social: {
|
social: {
|
||||||
github: 'https://gihthub.com/gogrlx/grlx',
|
github: 'https://gihthub.com/gogrlx/grlx',
|
||||||
|
|||||||
7
src/components/Transitions.astro
Normal file
7
src/components/Transitions.astro
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
import type { Props } from '@astro/starlight/props';
|
||||||
|
import Default from '@astrojs/starlight/components/Head.astro'
|
||||||
|
import { ViewTransitions } from 'astro:transitions';
|
||||||
|
---
|
||||||
|
<ViewTransitions />
|
||||||
|
<Default {...Astro.props}><slot /><</Default>
|
||||||
Reference in New Issue
Block a user