code/layouts/default.jsx

27 lines
757 B
React
Raw Normal View History

2021-07-05 18:32:33 +00:00
// eslint-disable-next-line no-unused-vars
import {Route} from 'solid-app-router';
2021-07-12 08:23:02 +00:00
// eslint-disable-next-line no-unused-vars
import {For} from 'solid-js';
// eslint-disable-next-line no-unused-vars
import {MetaProvider, Title, Link, Meta} from 'solid-meta';
import head from '../config/head.js';
2021-07-05 18:32:33 +00:00
function Default() {
return (
2021-07-12 08:23:02 +00:00
<>
<MetaProvider>
<Route />
<Title>{head.title}</Title>
<For each={head.link}>{link =>
<Link rel={link.rel} href={link.href} type={link?.type ?? ''} />
}</For>
<For each={head.meta}>{meta =>
<Meta name={meta?.name ?? ''} property={meta?.property ?? ''} content={meta.content} />
}</For>
</MetaProvider>
</>
2021-07-05 18:32:33 +00:00
);
}
export default Default;