Skip to content

Commit

Permalink
fix: per-page meta information
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Sep 11, 2024
1 parent 6027215 commit 3351b94
Show file tree
Hide file tree
Showing 14 changed files with 59 additions and 16 deletions.
19 changes: 17 additions & 2 deletions src/components/Head.astro
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
---
const description = "A Boston conference focused on excellent web dev tooling.";
export interface Props {
description: string;
title?: string;
}
const { description } = Astro.props;
const image = new URL("favicon.png", Astro.site).toString();
const title = "SquiggleConf | Supercharging web devs and their tools.";
const keywords = [
"squiggleconf",
"conference",
"devtools",
"javascript",
"typescript",
"rust",
"static analysis",
];
const title = [
Astro.props.title,
"SquiggleConf",
"Supercharging web devs and their tools",
]
.filter(Boolean)
.join(" | ");
const metaPairs = [
{
content: description,
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/AdLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Props {
---

<html lang="en">
<Head />
<Head description="Internal ad page." title="Ad" />
<body>
<main>
<DeepBlueSea class="deep-blue-ad" unmasked={Astro.props.unmasked}>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/BadgeLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "./normalize.css";
---

<html lang="en">
<Head />
<Head description="Internal badge page." title="Badge" />
<body>
<main class="badge">
<DeepBlueSea class="deep-blue-badge" light="top">
Expand Down
6 changes: 4 additions & 2 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
import "@fontsource-variable/josefin-sans";
import "@fontsource/urbanist";
import Head from "~/components/Head.astro";
import Head, { Props as HeadProps } from "~/components/Head.astro";
import "./base.css";
import "./normalize.css";
type Props = HeadProps;
---

<html lang="en">
<Head />
<Head {...Astro.props} />
<body>
<slot />
</body>
Expand Down
5 changes: 4 additions & 1 deletion src/layouts/ContentLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import "@fontsource-variable/josefin-sans";
import "@fontsource/urbanist";
import { SkipLinks } from "accessible-astro-components";
import { Props as HeadProps } from "~/components/Head.astro";
import Footer from "~/components/Footer.astro";
import Header from "~/components/Header.astro";
import BaseLayout from "./BaseLayout.astro";
type Props = HeadProps;
---

<BaseLayout>
<BaseLayout {...Astro.props}>
<SkipLinks />
<main id="main-content">
<Header />
Expand Down
5 changes: 4 additions & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ const bios: Omit<BioProps, "size">[] = [
] as const;
---

<ContentLayout>
<ContentLayout
description="About SquiggleConf: a Boston conference focused on excellent web dev tooling."
title="About Us"
>
<HeroForPage>About Us</HeroForPage>

<PrimaryContents>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ad/[type]/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const entity =
---

<html lang="en">
<Head />
<Head description="Internal ad page." title="Ad" />
<body>
<main>
<DeepBlueSea class="deep-blue-ad">
Expand Down
5 changes: 4 additions & 1 deletion src/pages/code-of-conduct.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import PrimaryContents from "~/components/PrimaryContents.astro";
import ContentLayout from "~/layouts/ContentLayout.astro";
---

<ContentLayout>
<ContentLayout
description="Code of Conduct for SquiggleConf: a Boston conference focused on excellent web dev tooling."
title="Code of Conduct"
>
<HeroForPage>Code of Conduct</HeroForPage>

<PrimaryContents>
Expand Down
5 changes: 4 additions & 1 deletion src/pages/faqs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import BodyText from "~/components/BodyText.astro";
import PrimaryContents from "~/components/PrimaryContents.astro";
---

<ContentLayout>
<ContentLayout
description="FAQs for SquiggleConf: a Boston conference focused on excellent web dev tooling."
title="FAQs"
>
<HeroForPage>Frequently Asked Questions</HeroForPage>

<PrimaryContents class="primary-faq-contents">
Expand Down
4 changes: 3 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import Sponsors from "~/components/Sponsors.astro";
import ContentLayout from "~/layouts/ContentLayout.astro";
---

<ContentLayout>
<ContentLayout
description="A Boston conference focused on excellent web dev tooling."
>
<PrimaryHero />
<PrimaryContents>
<div class="contents">
Expand Down
5 changes: 4 additions & 1 deletion src/pages/schedule.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { days } from "~/data/schedule";
import BodyText from "~/components/BodyText.astro";
---

<ContentLayout>
<ContentLayout
description="Schedule at SquiggleConf: a Boston conference focused on excellent web dev tooling."
title="Schedule"
>
<HeroForPage>Schedule</HeroForPage>

<BodyText class="schedule-body-text" width="lean">
Expand Down
5 changes: 4 additions & 1 deletion src/pages/sessions.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ const sections = [
] as const;
---

<ContentLayout>
<ContentLayout
description="Sessions at SquiggleConf: a Boston conference focused on excellent web dev tooling."
title="Sessions"
>
<HeroForPage>Sessions</HeroForPage>

<PrimaryContents>
Expand Down
5 changes: 4 additions & 1 deletion src/pages/speakers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const speakersToExclude = new Set([
]);
---

<ContentLayout>
<ContentLayout
description="Speakers at SquiggleConf: a Boston conference focused on excellent web dev tooling."
title="Speakers"
>
<HeroForPage>Speakers</HeroForPage>

<PrimaryContents>
Expand Down
5 changes: 4 additions & 1 deletion src/pages/travel.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import PrimaryContents from "~/components/PrimaryContents.astro";
import ContentLayout from "~/layouts/ContentLayout.astro";
---

<ContentLayout>
<ContentLayout
description="Traveling to SquiggleConf: a Boston conference focused on excellent web dev tooling."
title="Travel Info"
>
<HeroForPage>Travel</HeroForPage>

<PrimaryContents>
Expand Down

0 comments on commit 3351b94

Please sign in to comment.