mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-30 05:06:53 +00:00
Update page.tsx
This commit is contained in:
parent
3a503c15ec
commit
a773b91f05
@ -5,7 +5,9 @@ async function getChangelog() {
|
|||||||
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
|
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
|
||||||
try {
|
try {
|
||||||
const fileContents = fs.readFileSync(changelogPath, "utf8")
|
const fileContents = fs.readFileSync(changelogPath, "utf8")
|
||||||
return fileContents // Ahora el archivo ya es HTML, no necesita conversión
|
|
||||||
|
|
||||||
|
return fileContents.trim()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error reading changelog file:", error)
|
console.error("Error reading changelog file:", error)
|
||||||
return "<p>Changelog content not found.</p>"
|
return "<p>Changelog content not found.</p>"
|
||||||
@ -21,7 +23,7 @@ export default async function ChangelogPage() {
|
|||||||
<h1 className="text-4xl font-bold mb-8">Changelog</h1>
|
<h1 className="text-4xl font-bold mb-8">Changelog</h1>
|
||||||
<div
|
<div
|
||||||
className="prose prose-lg max-w-none bg-gray-100 p-4 border border-gray-300 rounded-md"
|
className="prose prose-lg max-w-none bg-gray-100 p-4 border border-gray-300 rounded-md"
|
||||||
dangerouslySetInnerHTML={{ __html: changelogContent }} // Renderiza directamente el HTML
|
dangerouslySetInnerHTML={{ __html: changelogContent }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user