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
1d0065ca
Commit
1d0065ca
authored
Apr 25, 2021
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Talks
parent
35824fea
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
4 deletions
+48
-4
collaborer.md
next/content/talks/collaborer.md
+6
-0
musicologist.md
next/content/talks/musicologist.md
+6
-0
posts.js
next/lib/posts.js
+1
-1
talks.js
next/lib/talks.js
+13
-0
index.js
next/pages/index.js
+22
-3
No files found.
next/content/talks/collaborer.md
0 → 100644
View file @
1d0065ca
---
title
:
Collaborer avec d'autres métiers
date
:
"
2020-04-21"
url
:
https://nech.pl/bigday2020-video
slides
:
https://nech.pl/bigday2020
---
next/content/talks/musicologist.md
0 → 100644
View file @
1d0065ca
---
title
:
The Musicologist, or Search as a Conversation
date
:
'
2017-11-23'
url
:
https://www.youtube.com/watch?v=3eb4KMNcOII
---
<!-- slides: https://nech.pl/bigday2020 -->
next/lib/posts.js
View file @
1d0065ca
import
{
getAllContentData
,
getAllContentIds
,
getContentData
}
from
'./utils'
import
{
getAllContentData
,
getAllContentIds
,
getContentData
}
from
'./utils'
export
function
get
Sorted
PostsData
()
{
export
function
getPostsData
()
{
return
getAllContentData
(
'posts'
,
true
)
return
getAllContentData
(
'posts'
,
true
)
}
}
...
...
next/lib/talks.js
0 → 100644
View file @
1d0065ca
import
{
getAllContentData
,
getAllContentIds
,
getContentData
}
from
'./utils'
export
function
getTalksData
()
{
return
getAllContentData
(
'talks'
,
true
)
}
export
function
getAllPostIds
()
{
return
getAllContentIds
(
"talks"
)
}
export
async
function
getPostData
(
id
)
{
return
getContentData
(
"talks"
,
id
)
}
next/pages/index.js
View file @
1d0065ca
...
@@ -3,18 +3,21 @@ import Link from "next/link";
...
@@ -3,18 +3,21 @@ import Link from "next/link";
import
Date
from
"../components/date"
;
import
Date
from
"../components/date"
;
import
Layout
from
"../components/layout"
;
import
Layout
from
"../components/layout"
;
import
utilStyles
from
"../styles/utils.module.css"
;
import
utilStyles
from
"../styles/utils.module.css"
;
import
{
getSortedPostsData
}
from
"../lib/posts"
;
import
{
getPostsData
}
from
"../lib/posts"
;
import
{
getTalksData
}
from
"../lib/talks"
;
export
async
function
getStaticProps
()
{
export
async
function
getStaticProps
()
{
const
allPostsData
=
getSortedPostsData
();
const
allPostsData
=
getPostsData
();
const
allTalksData
=
getTalksData
();
return
{
return
{
props
:
{
props
:
{
allPostsData
,
allPostsData
,
allTalksData
,
},
},
};
};
}
}
export
default
function
Home
({
allPostsData
})
{
export
default
function
Home
({
allPostsData
,
allTalksData
})
{
return
(
return
(
<
div
className
=
"container"
>
<
div
className
=
"container"
>
<
Layout
home
>
<
Layout
home
>
...
@@ -59,6 +62,22 @@ export default function Home({ allPostsData }) {
...
@@ -59,6 +62,22 @@ export default function Home({ allPostsData }) {
<
/p
>
<
/p
>
<
/section
>
<
/section
>
<
section
className
=
{
`
${
utilStyles
.
headingMd
}
${
utilStyles
.
padding1px
}
`
}
>
<
section
className
=
{
`
${
utilStyles
.
headingMd
}
${
utilStyles
.
padding1px
}
`
}
>
<
h2
className
=
{
utilStyles
.
headingLg
}
>
Talks
<
/h2
>
<
ul
className
=
{
utilStyles
.
list
}
>
{
allTalksData
.
map
(({
id
,
date
,
title
,
url
,
slides
})
=>
(
<
li
className
=
{
utilStyles
.
listItem
}
key
=
{
id
}
>
<
Link
href
=
{
`/posts/
${
id
}
`
}
>
<
a
href
=
{
url
}
>
{
title
}
<
/a
>
<
/Link
>
<
br
/>
<
small
className
=
{
utilStyles
.
lightText
}
>
<
Date
dateString
=
{
date
}
/
>
<
/small
>
<
/li
>
))}
<
/ul
>
<
/section
>
<
section
className
=
{
`
${
utilStyles
.
headingMd
}
${
utilStyles
.
padding1px
}
`
}
>
<
h2
className
=
{
utilStyles
.
headingLg
}
>
Blog
<
/h2
>
<
h2
className
=
{
utilStyles
.
headingLg
}
>
Blog
<
/h2
>
<
ul
className
=
{
utilStyles
.
list
}
>
<
ul
className
=
{
utilStyles
.
list
}
>
{
allPostsData
.
map
(({
id
,
date
,
title
})
=>
(
{
allPostsData
.
map
(({
id
,
date
,
title
})
=>
(
...
...
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