Init next.js port

This commit is contained in:
2021-12-07 22:38:31 -05:00
parent 6fde6b4f15
commit 2db4c28590
38 changed files with 18522 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
import Head from 'next/head';
export default function Meta(props: { name: string, ancestors?: Array<{ name: string, path: string }> }) {
const path = () => {
if (!props.ancestors)
return props.name;
let path = '';
props.ancestors.map((obj) => {
path = `${path}${obj.name} /`;
});
return `${path} ${props.name}`;
};
return (
<Head>
<title>PaulW.XYZ / {path()}</title>
</Head>
);
}