Update page.tsx

This commit is contained in:
MacRimi 2025-02-16 12:56:04 +01:00 committed by GitHub
parent 081958dfb1
commit 92435a088f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@ import fs from "fs"
import path from "path"
import matter from "gray-matter"
import Link from "next/link"
import Footer from "@/components/footer"
import Footer from "@/components/footer2"
const guidesDirectory = path.join(process.cwd(), "..", "guides")
@ -26,7 +26,7 @@ function getGuides(): Guide[] {
} else if (entry.isFile() && entry.name.endsWith(".md")) {
const slug = relativePath.replace(/\.md$/, "")
// 🔹 Extraer metadatos usando gray-matter
const fileContents = fs.readFileSync(fullPath, "utf8")
const { data } = matter(fileContents)
@ -64,7 +64,7 @@ export default function GuidesPage() {
))}
</div>
</div>
<Footer />
<Footer2 />
</div>
)
}