chore: replace Sculpin with Astro
This commit is contained in:
parent
d0ef96dead
commit
d1b76dda33
830 changed files with 5819 additions and 10532 deletions
38
website/src/pages/talks/index.astro
Normal file
38
website/src/pages/talks/index.astro
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
import PageLayout from '../../layouts/PageLayout.astro'
|
||||
|
||||
const talks = await Astro.glob("../../talks/*.md")
|
||||
|
||||
const sortedTalks = talks
|
||||
.map(talk => {
|
||||
const parts = talk.file.replace('.md', '').split('/')
|
||||
const slug = parts[parts.length - 1]
|
||||
|
||||
return { slug, talk }
|
||||
})
|
||||
.sort((b, a) => {
|
||||
const events = [
|
||||
a.talk.frontmatter.events[a.talk.frontmatter.events.length - 1],
|
||||
b.talk.frontmatter.events[b.talk.frontmatter.events.length - 1],
|
||||
]
|
||||
|
||||
return new Date(events[0].date).valueOf() -
|
||||
new Date(events[1].date).valueOf()
|
||||
})
|
||||
---
|
||||
|
||||
<PageLayout title="Talks and workshops">
|
||||
<p>Starting with my first talk in September 2012, I have given 85 presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.</p>
|
||||
|
||||
<div>
|
||||
{sortedTalks.map((talk) => (
|
||||
<article>
|
||||
<a href=`/talks/${talk.slug}`>
|
||||
<h2>{talk.talk.frontmatter.title}</h2>
|
||||
</a>
|
||||
|
||||
{talk.talk.frontmatter.description}
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
</PageLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue