Skip to content

Commit df6ad79

Browse files
committed
Move program back to original location
Prior to this change, the program was available only at a peculiar URL, and was shown as a Pretalx embed on a page that featured CSS from the home page, but with incorrect fonts in places, layout issues, and missing navigation components. This change retains the Pretalx embed, but moves it back to the expected location for the schedule. It also replaces the custom HTML with the base page Astro component, restoring the correct fonts and navigation, and the correct styles for a page that isn't the home page.
1 parent b3ed386 commit df6ad79

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

astro.config.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export default defineConfig({
1010
},
1111
integrations: [mdx()],
1212
redirects: {
13-
'/program': '/pycon-au-2024/schedule'
14-
}
13+
"/pycon-au-2024/schedule": "/program",
14+
},
1515
})

src/pages/program/index.astro

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
import Base from "../../layouts/Base.astro"
3+
---
4+
5+
<Base title="Program">
6+
<script type="text/javascript" src="/widgets/schedule.js" async></script>
7+
<pretalx-schedule
8+
event-url="/pycon-au-2024/"
9+
version="20240903.1"
10+
locale="en"
11+
timezone="Australia/Melbourne"
12+
style="--pretalx-clr-primary: #00B159"></pretalx-schedule>
13+
<noscript>
14+
<div class="alert alert-info m-4">
15+
<div></div>
16+
<div>
17+
To see our schedule, please either enable JavaScript or go <a
18+
href="/pycon-au-2024/schedule/nojs">here</a
19+
> for our NoJS schedule.
20+
</div>
21+
</div>
22+
</noscript>
23+
</Base>

0 commit comments

Comments
 (0)