Skip to content

Commit

Permalink
feat: add next seo
Browse files Browse the repository at this point in the history
  • Loading branch information
hyamero committed Dec 18, 2023
1 parent f8db256 commit ca370d2
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
33 changes: 33 additions & 0 deletions next-seo-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const description =
"Certificate Generator for Ctrl + Solve: An Introduction to Google Solution Challenge";

export default {
title: "SOLCHA Intro Certificate Generator",
description,
openGraph: {
type: "website",
url: "https://solcha23.omsimos.com/",
title: "SOLCHA Intro Certificate Generator",
description,
images: [
{
url: "/images/solcha-intro-thumbnail.png",
width: 1400,
height: 800,
alt: "solcha-intro",
type: "image/png",
},
],
site_name: "SOLCHA Intro Certificate Generator",
},
twitter: {
cardType: "summary_large_image",
},
additionalLinkTags: [
{
rel: "icon",
href: "/favicon.ico",
type: "image/x-icon",
},
],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"html-to-image": "^1.11.11",
"nanoid": "^5.0.2",
"next": "13.5.2",
"next-seo": "^6.4.0",
"nodemailer": "^6.9.6",
"nprogress": "^0.2.0",
"postcss": "8.4.30",
Expand Down
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/images/solcha-intro-thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import type { AppProps } from "next/app";

import "@/styles/globals.css";
import Layout from "@/components/Layout";
import SEO from "../../next-seo-config.js";
import { DefaultSeo } from "next-seo";

Router.events.on("routeChangeStart", () => {
NProgress.configure({ showSpinner: false });
Expand All @@ -25,6 +27,7 @@ const googleReg = localFont({
export default function App({ Component, pageProps }: AppProps) {
return (
<Layout className={googleReg.className}>
<DefaultSeo {...SEO} />
<Toaster />
<Component {...pageProps} />
</Layout>
Expand Down

0 comments on commit ca370d2

Please sign in to comment.