Skip to content

Commit 7721b92

Browse files
committed
Replace slug with id
1 parent 35bfd34 commit 7721b92

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+67
-70
lines changed

src/blog/BobKonf2024.md

Lines changed: 1 addition & 1 deletion

src/blog/DataScienceConf2023.md

Lines changed: 1 addition & 1 deletion

src/blog/FSharpFormattingTwenty.md

Lines changed: 1 addition & 1 deletion

src/blog/HingGracefully.md

Lines changed: 1 addition & 1 deletion

src/blog/PortingFsih.md

Lines changed: 1 addition & 1 deletion

src/blog/SwitchPackageToProjRef.md

Lines changed: 1 addition & 1 deletion

src/components/SessionsGrid.fs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ type Session =
200200
title : string
201201
date : JS.Date
202202
champion : string
203-
slug : string
204203
|}
205204

206205
type SessionsGridProps = {| sessions : Session array |}
@@ -241,7 +240,7 @@ let SessionsGrid (props : SessionsGridProps) : JSX.Element =
241240
h2 [] [ str "On the next Amplifying F#!" ]
242241
div [ Id "upcoming-sessions" ; ClassName "grid-container" ] [
243242
for session in upcomingSessions do
244-
a [ Href $"/sessions/%s{session.slug}" ; Key session.id ] [
243+
a [ Href $"/sessions/%s{session.id}" ; Key session.id ] [
245244
h3 [] [ str session.title ]
246245
div [] [
247246
time [] [ str (session.date.toLocaleDateString ()) ]
@@ -261,7 +260,7 @@ let SessionsGrid (props : SessionsGridProps) : JSX.Element =
261260
$"url('https://img.youtube.com/vi/%s{session.youtubeId}/mqdefault.jpg')"
262261

263262
a [
264-
Href $"/sessions/%s{session.slug}"
263+
Href $"/sessions/%s{session.id}"
265264
Key session.id
266265
Style
267266
{|

src/components/SessionsGrid.fsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ type Session =
1111
title : string
1212
date : Date
1313
champion : string
14-
slug : string
1514
|}
1615

1716
type SessionsGridProps = {| sessions : Session array |}

src/pages/sessions.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const sessions = await getCollection("sessions").then((sessions) => {
1212
title: session.data.title,
1313
date: session.data.date,
1414
champion: session.data.champion,
15-
slug: session.id,
1615
};
1716
});
1817
});

src/sessions/2023-03-03.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)