import { Document } from "asciidoctor";
import { DateTime } from "luxon";
type HeaderProps = {
asset(path: string): string;
};
const Header = ({ asset }: HeaderProps) => (
);
type ArticleProps = {
articles: [string, DateTime, Document][];
};
const Articles = ({ articles }: ArticleProps) => (
<>
Latest articles
{articles.map(([slug, date, article]) => (
-
{date.toISODate()}
))}
>
);
type Props = HeaderProps & ArticleProps;
const SOCIALS: [string, string, string][] = [
["Gitea", "https://gitea.adaedra.eu", "git"],
["Mastodon", "https://nerdculture.de/@adaedra", "mastodon"],
["LinkedIn", "https://www.linkedin.com/in/thibault-hamel/", "linkedin"],
];
const Socials = () => (
<>
Find me elsewhere
{SOCIALS.map(([name, url, svgId]) => (
-
{name}
))}
>
);
const Footer = () => ;
export default ({ asset, articles }: Props) => (
<>
>
);