Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
www
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
www
Commits
d3642120
Commit
d3642120
authored
Apr 25, 2021
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: Remove buggy /talk/id
parent
6f2a2b09
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
48 deletions
+0
-48
[id].js
next/pages/talk/[id].js
+0
-48
No files found.
next/pages/talk/[id].js
deleted
100644 → 0
View file @
6f2a2b09
import
Head
from
"next/head"
;
import
Layout
from
"../../components/layout"
;
import
Date
from
"../../components/date"
;
import
utilStyles
from
"../../styles/utils.module.css"
;
import
{
getTalkData
,
getTalksData
,
getAllTalkIds
}
from
"../../lib/talks"
;
export
async
function
getStaticProps
({
params
})
{
const
data
=
await
getTalkData
(
params
.
id
);
return
{
props
:
{
data
,
},
};
}
export
async
function
getStaticPaths
()
{
const
paths
=
getAllTalkIds
();
return
{
paths
,
fallback
:
false
,
};
}
export
default
function
Talk
({
data
})
{
return
(
<
Layout
>
<
Head
>
<
title
>
{
data
.
title
}
<
/title
>
<
/Head
>
<
article
>
<
h1
className
=
{
utilStyles
.
headingXl
}
>
{
data
.
title
}
<
/h1
>
<
div
className
=
{
utilStyles
.
lightText
}
>
<
Date
dateString
=
{
data
.
date
}
dateFormat
=
"YY MMM"
/>
<
/div
>
{
data
.
event
&&
data
.
context
&&
(
<
p
>
{
" "
}
at
<
a
href
=
{
data
.
event
}
>
{
data
.
context
}
<
/a> by {data.org
}
<
/p
>
)}
<
div
className
=
{
utilStyles
.
lightText
}
><
/div
>
<
div
className
=
{
utilStyles
.
lightText
}
><
/div
>
<
div
dangerouslySetInnerHTML
=
{{
__html
:
data
.
contentHtml
}}
/
>
<
/article
>
<
/Layout
>
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment