hornwitser.no/content/updates.tsx
Hornwitser d003ea01d0 Use absolute refs transformed to relative
Write all links as absolute refs from the virtual root of the website's
path namespace and then transform these into relative links with the
resolveRefs utility function.
2025-01-22 09:03:37 +01:00

32 lines
696 B
TypeScript

import { BasePage } from "./bases.js";
import type { Page } from "./types.js";
export const updates: Page[] = [
{
published: "2025-xx-xx",
title: "Website Launch",
ref: "/updates/site-launch.html",
}
].map(page => ({
title: page.title,
ref: page.ref,
content: <BasePage title={page.title}>
<h1>{page.title}</h1>
<p>Published: {page.published}</p>
<p>Placeholder content</p>
</BasePage>
}));
const title = "Website Updates";
export const updatesIndex: Page = {
title,
ref: "/updates.html",
content: <BasePage title={title}>
<main>
<h1>{title}</h1>
<ul>
{ updates.map(update => <li><a href={update.ref}>{update.title}</a></li>)}
</ul>
</main>
</BasePage>
}