Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
reteps committed Aug 21, 2024
1 parent 62cf9d3 commit 3d39960
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions fallctf.com/src/layouts/Base.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import '@/styles/main.css';
import '@/styles/md.css';
import '~/styles/prism-one-dark.css';
import type { HeadProps } from '~/components/BaseHead.astro';
Expand Down
6 changes: 3 additions & 3 deletions fallctf.com/src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
import Layout from '@/layouts/Base.astro';
import { getCollection } from "astro:content";
import { getCollection, type CollectionEntry } from "astro:content";
const rawEvents = await getCollection('events')
const rawEvents = await getCollection('events') as CollectionEntry<'events'>[];
---

<Layout title="Home">
<h1>Events</h1>
<ul>
{rawEvents.map((event) => (
<li>
<a href={`/events/${event.slug}`}>{event.data.title}</a>
<p>{event.data.title}</p>
</li>
))}
</ul>
Expand Down
2 changes: 2 additions & 0 deletions sigpwny.com/src/layouts/Base.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
import '@/styles/main.css';
import '@/styles/md.css';
import '~/styles/prism-one-dark.css';
import type { HeadProps } from '~/components/BaseHead.astro';
Expand Down

0 comments on commit 3d39960

Please sign in to comment.