Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import { ClientRouter } from "astro:transitions";
import "../styles/global.css";

interface Props {
Expand All @@ -14,7 +15,7 @@ const imageUrl = `${siteUrl}${image}`;
---

<!doctype html>
<html lang="en" class="h-full">
<html lang="es" class="h-full" transition:name="root" transition:animate="none">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
Expand Down Expand Up @@ -55,6 +56,9 @@ const imageUrl = `${siteUrl}${image}`;
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={imageUrl} />

<!-- View Transitions -->
<ClientRouter />
</head>
<body class="h-full bg-white">
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/PageLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const { title, description, image } = Astro.props;
<Navigation />
</header>

<main class="flex-1 pt-16">
<main class="flex-1 pt-16" transition:animate="fade">
<slot />
</main>

Expand Down