Skip to content

Commit 0458871

Browse files
authored
Merge branch 'ep2025' into ep2025-unconference
2 parents 1ae6cdf + 964f028 commit 0458871

30 files changed

+139
-34
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ check:
4444

4545
build:
4646
pnpm run astro build --mode $(MODE)
47+
pnpm pagefind
4748

4849
preview: RELEASES_DIR = $(VPS_PREVIEW_PATH)/$(SAFE_BRANCH)/releases
4950
preview: TARGET = $(RELEASES_DIR)/$(TIMESTAMP)

astro.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import remarkToc from "remark-toc";
66
import rehypeSlug from "rehype-slug";
77
import rehypeAutolinkHeadings from "rehype-autolink-headings";
88
import metaTags from "astro-meta-tags";
9-
import pagefind from "astro-pagefind";
109
import deleteUnusedImages from "astro-delete-unused-images";
1110
import { execSync } from "node:child_process";
1211
import svelte from "@astrojs/svelte";
@@ -116,7 +115,6 @@ export default defineConfig({
116115
mdx(),
117116
sitemap(),
118117
metaTags(),
119-
pagefind(),
120118
deleteUnusedImages(),
121119
svelte(),
122120
compress({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "astro dev",
77
"start": "astro dev",
8-
"build": "astro check && astro build && pnpm pagefind --site dist",
8+
"build": "astro check && astro build && pnpm pagefind",
99
"preview": "astro preview",
1010
"astro": "astro",
1111
"format": "prettier --write --plugin=prettier-plugin-astro ."

pagefind.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
site: dist
22
glob: "**/*.{html}"
3+
root_selector: "main"

src/components/SponsorLogo.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const logo = sponsorLogos[sponsor.id];
2828
{
2929
website ? (
3030

31-
<a href={website} aria-label={`Link to ${title}`}
31+
<a href={website} target="_blank" aria-label={`Link to ${title}`}
3232
>
3333
<Image
3434
src={logo}

src/components/schedule/session.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const hasFooter = true;
8080
codeId={session.code}
8181
title={session.title}
8282
/>
83-
<h2>
83+
<h2 id=`session-${session.slug}`>
8484
{session.title}
8585
</h2>
8686

src/components/sections/keynoters/keynoter.astro

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import type { ImageMetadata } from "astro";
3-
import { getCollection } from "astro:content";
43
import { Image } from "astro:assets";
54
import Person1 from "./placeholders/person-1.astro";
65
import Person2 from "./placeholders/person-2.astro";
@@ -10,7 +9,7 @@ import Person5 from "./placeholders/person-5.astro";
109
1110
export interface Props {
1211
name: string;
13-
slug: string;
12+
url: string;
1413
tagline?: string | undefined;
1514
image?: ImageMetadata;
1615
placeholder?: boolean | undefined;
@@ -20,7 +19,7 @@ export interface Props {
2019
2120
const {
2221
name,
23-
slug,
22+
url,
2423
tagline,
2524
image,
2625
placeholder,
@@ -31,9 +30,6 @@ const placeholders = [Person1, Person2, Person3, Person4, Person5];
3130
3231
const Placeholder =
3332
placeholders[Math.floor(Math.random() * placeholders.length)];
34-
35-
const entries = await getCollection("speakers");
36-
const isSpeaker = entries.some((entry) => entry.id === slug);
3733
---
3834

3935
<li class:list={["list-none rounded-2xl overflow-clip flex group", className]}>
@@ -61,10 +57,10 @@ const isSpeaker = entries.some((entry) => entry.id === slug);
6157
<p class="text-body-inverted">More keynoters coming soon</p>
6258
) : (
6359
<>
64-
{isSpeaker ? (
60+
{url ? (
6561
<h2 class="text-[#17223A] font-bold">
6662
<a
67-
href={`/speaker/${slug}`}
63+
href={url}
6864
class="text-2xl font-bold hover:underline"
6965
>
7066
{name}

src/components/sections/keynoters/keynoters.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const placeholders = Math.max(0, 5 - keynoters.length);
1919
.map((keynoter, _index) => (
2020
<Keynoter
2121
name={keynoter.data.name}
22-
slug={keynoter.slug}
22+
url={keynoter.data.url || ""}
2323
tagline={keynoter.data.tagline}
2424
image={keynoter.data.image}
2525
placeholder={false}
@@ -36,7 +36,7 @@ const placeholders = Math.max(0, 5 - keynoters.length);
3636
.map((_, _index) => (
3737
<Keynoter
3838
name=""
39-
slug=""
39+
url=""
4040
tagline=""
4141
placeholder={true}
4242
class:list={["w-full sm:w-[calc(50%-1rem)] md:w-[calc(30%-1rem)]"]}

src/components/sponsors/sponsor-tier.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { tier, top } = Astro.props;
2929
"grid ml-12 items-center justify-items-center",
3030
{
3131
"grid-cols-1 md:grid-cols-2 lg:grid-cols-3": !top,
32-
"grid-cols-1 md:grid-cols-1": top,
32+
"grid-cols-1 md:grid-cols-2": top,
3333
},
3434
]}
3535
>

src/content/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const keynoters = defineCollection({
3030
schema: ({ image }) =>
3131
z.object({
3232
name: z.string(),
33+
url: z.string().optional(),
3334
tagline: z.string().optional(),
3435
image: image(),
3536
order: z.number(),

0 commit comments

Comments
 (0)