From 3af808d77cf95854828c9cb7ab26d8cb8982aa62 Mon Sep 17 00:00:00 2001 From: VityaSchel <59040542+VityaSchel@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:03:43 +0400 Subject: [PATCH] OGP meta tags and SEO optimization --- public/robots.txt | 2 ++ src/pages/[group].tsx | 13 +++++++++++-- src/pages/_document.tsx | 3 +-- src/shadcn/ui/card.tsx | 2 +- src/widgets/schedule/day.tsx | 4 ++-- 5 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 public/robots.txt diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..6f27bb6 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: \ No newline at end of file diff --git a/src/pages/[group].tsx b/src/pages/[group].tsx index 83a4104..77f0b9b 100644 --- a/src/pages/[group].tsx +++ b/src/pages/[group].tsx @@ -9,14 +9,16 @@ import { groups } from '@/shared/data/groups' import crypto from 'crypto' import React from 'react' import { getDayOfWeek } from '@/shared/utils' +import Head from 'next/head' type PageProps = NextSerialized<{ schedule: Day[] + group: string parsedAt: Date }> export default function HomePage(props: PageProps) { - const { schedule, parsedAt } = nextDeserializer(props) + const { schedule, group, parsedAt } = nextDeserializer(props) React.useEffect(() => { if (typeof window !== 'undefined') { @@ -39,6 +41,12 @@ export default function HomePage(props: PageProps) { return ( <> +
+