feat: update content
This commit is contained in:
parent
011a964256
commit
5aef42e16f
7 changed files with 8 additions and 10 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
|
@ -1,3 +1,3 @@
|
|||
[submodule "research"]
|
||||
path = research
|
||||
url = https://github.com/chora-studio/research
|
||||
[submodule "artifacts"]
|
||||
path = artifacts
|
||||
url = https://github.com/chora-studio/artifacts
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ export const generateStaticParams = () => {
|
|||
|
||||
const ArtifactPage = async ({ params }: any) => {
|
||||
const artifact = await getArtifact('concepts', params.id)
|
||||
|
||||
return (
|
||||
<div className={styles.page}>
|
||||
<div className={styles.banner}>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export const metadata: Metadata = {
|
|||
title: 'chora studio | research',
|
||||
}
|
||||
|
||||
async function getResearch() {
|
||||
async function getResearchArtifacts() {
|
||||
return [
|
||||
{ group: 'about', items: getArtifacts('about') },
|
||||
{ group: 'concepts', items: getArtifacts('concepts') },
|
||||
|
|
@ -17,8 +17,7 @@ async function getResearch() {
|
|||
}
|
||||
|
||||
const ResearchPage = async () => {
|
||||
const artifacts = await getResearch()
|
||||
|
||||
const artifacts = await getResearchArtifacts()
|
||||
return (
|
||||
<div className={styles.page}>
|
||||
<div className={styles.banner}>
|
||||
|
|
|
|||
1
artifacts
Submodule
1
artifacts
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 9e1988ceec80250b0e9ca6c940ebf9d37d276cb3
|
||||
1
research
1
research
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 727d8dc4c06736055a2ad516769539f68532ceb6
|
||||
|
|
@ -4,7 +4,7 @@ import matter from 'gray-matter'
|
|||
import { remark } from 'remark'
|
||||
import html from 'remark-html'
|
||||
|
||||
const root = path.join(process.cwd(), 'research')
|
||||
const root = path.join(process.cwd(), 'artifacts')
|
||||
|
||||
export async function getArtifact(dir: string, id: string) {
|
||||
const fullPath = path.join(root, dir, `${id}.md`)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import fs from 'fs'
|
|||
import path from 'path'
|
||||
import matter from 'gray-matter'
|
||||
|
||||
const root = path.join(process.cwd(), 'research')
|
||||
const root = path.join(process.cwd(), 'artifacts')
|
||||
|
||||
export const getArtifacts = (dir: string) => {
|
||||
const fileNames = fs.readdirSync(root + '/' + dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue