mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-29 20:56:54 +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")
|
||||
try {
|
||||
const fileContents = fs.readFileSync(changelogPath, "utf8")
|
||||
return fileContents // Ahora el archivo ya es HTML, no necesita conversión
|
||||
|
||||
|
||||
return fileContents.trim()
|
||||
} catch (error) {
|
||||
console.error("Error reading changelog file:", error)
|
||||
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>
|
||||
<div
|
||||
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user