mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-06 23:46:52 +00:00
Update page.tsx
This commit is contained in:
parent
7f8bd86c5c
commit
aadd63634b
@ -3,7 +3,7 @@ import path from "path"
|
|||||||
import { remark } from "remark"
|
import { remark } from "remark"
|
||||||
import html from "remark-html"
|
import html from "remark-html"
|
||||||
|
|
||||||
const guidesDirectory = path.join(process.cwd(), "guides")
|
const guidesDirectory = path.join(process.cwd(), "..", "guides")
|
||||||
|
|
||||||
async function getGuideContent(slug: string) {
|
async function getGuideContent(slug: string) {
|
||||||
const fullPath = path.join(guidesDirectory, `${slug}.md`)
|
const fullPath = path.join(guidesDirectory, `${slug}.md`)
|
||||||
@ -44,3 +44,4 @@ export default async function GuidePage({ params }: { params: { slug: string } }
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user