2022-10-02 19:38:38 +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';
|
2022-10-02 20:03:44 +00:00
|
|
|
import Homelink from '../Homelink.tsx';
|
2024-03-06 15:34:00 +00:00
|
|
|
import Langlink from '../Langlink.tsx';
|
2022-10-02 19:38:38 +00:00
|
|
|
import HakkenDates from '../HakkenDates.tsx';
|
2024-03-06 15:34:00 +00:00
|
|
|
import Services from '../Services.tsx';
|
2022-10-02 18:46:42 +00:00
|
|
|
|
|
|
|
export default ({
|
|
|
|
title,
|
2022-10-02 19:38:38 +00:00
|
|
|
content,
|
|
|
|
|
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,
|
|
|
|
|
|
|
|
showHakkenDates,
|
2023-12-26 21:11:36 +00:00
|
|
|
hakken,
|
2024-03-06 15:34:00 +00:00
|
|
|
|
|
|
|
showServices,
|
|
|
|
services,
|
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}
|
2022-12-10 15:55:06 +00:00
|
|
|
extraScripts={[...(extraScripts || []), '/scripts/copy-code.js']}
|
2022-10-02 18:46:42 +00:00
|
|
|
/>
|
|
|
|
<body className="ps-main">
|
2022-10-02 19:38:38 +00:00
|
|
|
|
2022-10-02 18:46:42 +00:00
|
|
|
<Background />
|
2022-10-02 19:38:38 +00:00
|
|
|
|
2022-10-02 20:03:44 +00:00
|
|
|
<Homelink />
|
|
|
|
|
2024-03-06 15:34:00 +00:00
|
|
|
<Langlink otherLang={otherLang} baseURL={baseURL} />
|
2022-10-02 19:38:38 +00:00
|
|
|
|
2024-03-06 15:34:00 +00:00
|
|
|
<main className="ps-main--page ps-page">
|
|
|
|
<div className="ps-page--contents">
|
|
|
|
<section dangerouslySetInnerHTML={{ __html: md(content) }}></section>
|
|
|
|
{showServices ? <Services lang="en" language={language} data={services} /> : null}
|
|
|
|
{showHakkenDates ? <HakkenDates lang="en" data={hakken} /> : null}
|
|
|
|
</div>
|
2022-10-02 19:38:38 +00:00
|
|
|
|
2022-10-02 18:46:42 +00:00
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</>;
|