diff --git a/pages/[...slug].tsx b/pages/[...slug].tsx index 5ae1bf6d..fa0dd683 100644 --- a/pages/[...slug].tsx +++ b/pages/[...slug].tsx @@ -2,7 +2,7 @@ import Head from "next/head" import { App } from "src/components/App" import { tail } from "lodash" import { Page } from "src/components/Page" -import { Meta } from "src/components/Meta" +import { NextSeo } from "next-seo" import { MetaBuilder } from "src/lib/meta" import { apiGet } from "@/next-lib" import { GetStaticProps, NextPage } from "next" @@ -57,94 +57,116 @@ const Index: NextPage = props => { } return ( - - - {props.title} - {!props.meta ? null : ( - - )} - + <> + {!props.meta ? null : ( + + )} - -
- {props.tokens.map((x, i) => { - switch (x.token) { - case "html": - return ( - - ) + + {props.title} + - case "instagram": - return ( - - ) + +
+ {props.tokens.map((x, i) => { + switch (x.token) { + case "html": + return ( + + ) - case "youtube": - return ( - - ) + case "instagram": + return ( + + ) - case "image": - return ( - - ) + case "youtube": + return ( + + ) - case "file": - return ( - - ) + case "image": + return ( + + ) - case "grid": - return ( - - ) + case "file": + return ( + + ) - default: - return ( -
-                                    {JSON.stringify(x)}
-                                
- ) - } - })} -
-
- + case "grid": + return ( + + ) + + default: + return ( +
+                                        {JSON.stringify(x)}
+                                    
+ ) + } + })} +
+
+
+ ) }