feat: update content
This commit is contained in:
parent
e550ccb43f
commit
341bad80ee
1 changed files with 18 additions and 18 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import Link from 'next/link'
|
// import Link from 'next/link'
|
||||||
|
|
||||||
import { getDocs } from '@utils'
|
// import { getDocs } from '@utils'
|
||||||
|
|
||||||
import styles from './page.module.css'
|
import styles from './page.module.css'
|
||||||
|
|
||||||
|
|
@ -9,21 +9,21 @@ export const metadata: Metadata = {
|
||||||
title: 'chora studio | research',
|
title: 'chora studio | research',
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getResearch() {
|
// async function getResearch() {
|
||||||
const allDocs = getDocs().filter((p) => p.tags.includes('research'))
|
// const allDocs = getDocs().filter((p) => p.tags.includes('research'))
|
||||||
|
|
||||||
// sort docs by date
|
// // sort docs by date
|
||||||
return allDocs.sort((a, b) => {
|
// return allDocs.sort((a, b) => {
|
||||||
if (a.date < b.date) {
|
// if (a.date < b.date) {
|
||||||
return 1
|
// return 1
|
||||||
} else {
|
// } else {
|
||||||
return -1
|
// return -1
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
|
||||||
const ResearchPage = async () => {
|
const ResearchPage = async () => {
|
||||||
const docs = await getResearch()
|
// const docs = await getResearch()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.page}>
|
<div className={styles.page}>
|
||||||
|
|
@ -42,9 +42,9 @@ const ResearchPage = async () => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.contentFull}>
|
<div className={styles.contentFull}>
|
||||||
{!docs.length ? (
|
{/*{!docs.length ? (*/}
|
||||||
<p>{'coming soon...'}</p>
|
<p>{'coming soon...'}</p>
|
||||||
) : (
|
{/*) : (
|
||||||
<ul>
|
<ul>
|
||||||
{docs.map(({ id, date, title, author }) => (
|
{docs.map(({ id, date, title, author }) => (
|
||||||
<li key={id}>
|
<li key={id}>
|
||||||
|
|
@ -56,7 +56,7 @@ const ResearchPage = async () => {
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
)}
|
)}*/}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue