Skip to content

Commit

Permalink
fix slides with only source
Browse files Browse the repository at this point in the history
  • Loading branch information
reggi committed Jul 18, 2024
1 parent e0638e6 commit 271097a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/content/feed/2024-07-18-post-event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
event: 2024-07-04-event
publishedAt: 2024-07-18
---
2 changes: 1 addition & 1 deletion src/content/presentations/2024-07-04-chris-deluca.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: 2024-07-04
slides: /presentations/2024-07-04-chris-deluca.pdf
slidesSource: https://www.chrisdeluca.me/subgrid/
speaker: chris-deluca
title: 'Subsuming Sub Grid: Shiny New CSS Layout Powers'
---
2 changes: 1 addition & 1 deletion src/content/presentations/2024-07-04-peter-valdez.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: 2024-07-04
slides: /presentations/2024-07-04-peter-valdez.pdf
slidesSource: https://github.com/moonbeam-nyc/snorlax
speaker: peter-valdez
title: 'Snorlax: the Kubernetes sleep operator'
---
2 changes: 1 addition & 1 deletion src/data/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function getFeed(props: {site?: URL}): Promise<HydratedFeedItem[]>
data: {
...presentation.data,
slides: presentation.data.slides && link(presentation.data.slides),
slidesSource: presentation.data.slides && link(presentation.data.slides),
slidesSource: presentation.data.slidesSource && presentation.data.slidesSource,
},
speaker,
}
Expand Down
2 changes: 1 addition & 1 deletion src/markdown/post-event-markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ ${event.data.banner && `![event banner for ${event.data.date}](${event.data.bann
Special thanks to our presenters ${event.presentations.map(p => p.speaker.data.name).join(', ')} for sharing their knowledge with us.
${event.presentations.map(p => `* ${p.speaker.data.name} - ${p.data.title} - [slides](${p.data.slides})`).join('\n')}
${event.presentations.map(p => `* ${p.speaker.data.name} - ${p.data.title} - [slides](${p.data.slides ? p.data.slides : p.data.slidesSource})`).join('\n')}
`

0 comments on commit 271097a

Please sign in to comment.