diff --git a/app/creator/page.tsx b/app/creator/page.tsx index 260e259..26f6b4e 100644 --- a/app/creator/page.tsx +++ b/app/creator/page.tsx @@ -1,3 +1,4 @@ +import SenjaSocialGrid from "@/components/senja-social-grid"; import SocialsCard from "@/components/socials-card"; import { getFacebookFollowers, @@ -71,11 +72,7 @@ export default async function Creator() { /> ))} -
+ ); } diff --git a/app/layout.tsx b/app/layout.tsx index 598534a..105c803 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,7 +4,6 @@ import { Providers } from "@/lib/provider"; import Footer from "@/components/footer"; import { siteConfig } from "@/config/site"; import Analytics from "@/components/analytics"; -import Script from "next/script"; export const metadata = { title: siteConfig.name, @@ -92,17 +91,6 @@ export default function RootLayout({ data-y_margin="18" strategy="lazyOnload" > */} - - ); diff --git a/app/robots.ts b/app/robots.ts index c2961e4..1bc1dfc 100644 --- a/app/robots.ts +++ b/app/robots.ts @@ -3,11 +3,14 @@ import { allPosts } from "contentlayer/generated"; export default function robots(): MetadataRoute.Robots { // Find all unpublished posts. - const disallowedPaths = allPosts + const disallowedPosts = allPosts .filter((post) => !post.published) - .map((post) => `/${post.slugAsParams}`); + .map((post) => `${post.slug}`); + + const disallowedPaths = [...disallowedPosts, "/api/contact"]; return { + sitemap: "/sitemap.xml", rules: { userAgent: "*", allow: "/", diff --git a/components/footer.tsx b/components/footer.tsx index 1af6261..969fcc6 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -10,6 +10,7 @@ import { Logo } from "./logo"; import Link from "next/link"; import NewsletterBox from "./newsletter-box"; import { SiGithub, SiNextdotjs, SiTailwindcss, SiVercel } from "react-icons/si"; +import Script from "next/script"; export default function Footer() { return ( @@ -17,6 +18,12 @@ export default function Footer() { role="contentinfo" className="bg-lighter dark:bg-dark text-darker dark:text-light py-4 mt-20 w-full" > +
diff --git a/components/senja-social-grid.tsx b/components/senja-social-grid.tsx new file mode 100644 index 0000000..b1f041b --- /dev/null +++ b/components/senja-social-grid.tsx @@ -0,0 +1,19 @@ +import Script from "next/script"; + +export default function SenjaSocialGrid() { + return ( + <> + +
+ + ); +}