2024-03-06 15:34:00 +00:00
|
|
|
import { md } from '../../filters.ts';
|
2022-10-02 18:46:42 +00:00
|
|
|
import Head from '../Head.tsx';
|
|
|
|
import Background from '../Background.tsx';
|
2024-03-06 15:34:00 +00:00
|
|
|
import Langlink from '../Langlink.tsx';
|
2022-10-02 18:46:42 +00:00
|
|
|
|
|
|
|
export default ({
|
|
|
|
title,
|
2022-10-02 19:38:38 +00:00
|
|
|
content,
|
|
|
|
links,
|
|
|
|
|
2024-03-06 15:34:00 +00:00
|
|
|
language,
|
|
|
|
otherLang,
|
|
|
|
baseURL,
|
2022-10-02 18:46:42 +00:00
|
|
|
theme,
|
|
|
|
extraStylesheets,
|
2022-10-02 19:38:38 +00:00
|
|
|
extraScripts,
|
|
|
|
cacheBust,
|
2022-10-02 18:46:42 +00:00
|
|
|
}) => <>
|
2024-03-06 15:34:00 +00:00
|
|
|
<html lang={language.slug}>
|
2022-10-02 18:46:42 +00:00
|
|
|
<Head
|
|
|
|
title={title}
|
|
|
|
theme={theme}
|
2024-03-06 15:34:00 +00:00
|
|
|
otherLang={otherLang}
|
|
|
|
baseURL={baseURL}
|
2022-10-02 18:46:42 +00:00
|
|
|
extraStylesheets={extraStylesheets}
|
2022-10-02 19:38:38 +00:00
|
|
|
cacheBust={cacheBust}
|
|
|
|
extraScripts={extraScripts}
|
2022-10-02 18:46:42 +00:00
|
|
|
/>
|
|
|
|
<body className="ps-main">
|
|
|
|
<Background />
|
2024-03-06 15:34:00 +00:00
|
|
|
|
|
|
|
<Langlink otherLang={otherLang} baseURL={baseURL} />
|
|
|
|
|
2022-10-02 18:46:42 +00:00
|
|
|
<main className="ps-main--page ps-page ps-page_home">
|
2024-03-06 15:34:00 +00:00
|
|
|
<section
|
|
|
|
className="ps-page--contents"
|
|
|
|
dangerouslySetInnerHTML={{ __html: md(content) }}
|
|
|
|
></section>
|
|
|
|
|
|
|
|
<section className="ps-page--links">
|
|
|
|
{links.map(({ href, title, openInNewTab }) =>
|
|
|
|
<a
|
|
|
|
href={href}
|
|
|
|
target={openInNewTab ? '_blank' : '_self'}
|
|
|
|
className="ps-page--link"
|
|
|
|
key={href}
|
|
|
|
>{title}</a>
|
|
|
|
)}
|
|
|
|
</section>
|
2022-10-02 18:46:42 +00:00
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</>;
|