Skip to content

Commit fdcedcc

Browse files
committed
Update layouts.
1 parent e4c0491 commit fdcedcc

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

src/layouts/Layout.astro

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import BaseLayout from "@layouts/BaseLayout.astro";
23
import BaseHead from "@components/BaseHead.astro";
34
import Header from "@components/Header.astro";
45
import Footer from "@components/Footer.astro";
@@ -19,19 +20,17 @@ export interface Props {
1920
const { title, description } = Astro.props;
2021
---
2122

22-
<!doctype html>
23-
<html lang="en">
24-
<head>
23+
<BaseLayout title={title} description={description}>
24+
<Fragment slot="head">
2525
<BaseHead title={title} description={description} />
26-
<slot name="head" />
2726
<link rel="preconnect" href="https://fonts.googleapis.com">
2827
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2928

3029
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sofia+Sans+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap" rel="stylesheet">
3130

3231
<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sofia+Sans+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap" rel="stylesheet">
32+
</Fragment>
3333

34-
</head>
3534
<body>
3635
<a href="#main-content" class="sr-only focus:not-sr-only focus:absolute focus:top-2 focus:left-2 bg-white text-blue-600 p-2 z-50"> Skip to main content</a>
3736

@@ -45,4 +44,4 @@ const { title, description } = Astro.props;
4544
<Footer />
4645

4746
</body>
48-
</html>
47+
</BaseLayout>

src/layouts/ScheduleLayout.astro

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,10 @@ const { title, description } = Astro.props;
1010
---
1111

1212
<Layout title="Schedule" description="Schedule" >
13-
<Fragment slot="head">
14-
<link rel="preconnect" href="https://fonts.googleapis.com">
15-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
16-
17-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sofia+Sans+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap" rel="stylesheet">
18-
19-
<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sofia+Sans+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap" rel="stylesheet">
20-
</head>
21-
2213
<div class="layout-wrapper2">
2314
<slot />
2415
</div>
16+
2517
</Layout>
2618

2719
<style is:global>

0 commit comments

Comments
 (0)