diff options
Diffstat (limited to 'src/layouts')
| -rw-r--r-- | src/layouts/Default.astro | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/layouts/Default.astro b/src/layouts/Default.astro index 95ceeaf..368f089 100644 --- a/src/layouts/Default.astro +++ b/src/layouts/Default.astro @@ -5,6 +5,7 @@ interface Props { } const { title = "Andrew Lee", description = "Andrew Lee Website" } = Astro.props; +import { ClientRouter } from "astro:transitions"; import Navbar from '../components/Navbar.svelte'; const date = new Date(); --- @@ -40,15 +41,15 @@ const date = new Date(); <script defer data-domain="alee14.me" data-api="/plausible/api/event" src="/plausible/js/script.js"/> <script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script> - <!--<ClientRouter fallback="animate" />--> + <ClientRouter fallback="animate" /> <title>{title}</title> </head> <body> <Navbar client:load /> - <div> + <div transition:name="main" transition:animate="fade"> <slot /> <footer> - <p class="small">Made with {Astro.generator} and Hosted on Vercel</p> + <p class="small">Made with Astro and Hosted on Vercel</p> <p>Copyright © {date.getFullYear()} Andrew Lee. <a href="https://github.com/Alee14/personal-website" target="_blank">View source code.</a></p> </footer> </div> |
