Skip to content

Commit

Permalink
fix: fix schema issue
Browse files Browse the repository at this point in the history
  • Loading branch information
HereEast committed Jan 30, 2025
1 parent 2d6d01a commit 9e86bad
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
File renamed without changes
Binary file removed public/images/people/margo-lazarenkova-2.jpg
Binary file not shown.
Binary file removed public/twitter-image.jpg
Binary file not shown.
26 changes: 13 additions & 13 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { ClientProvider } from "~/providers/ClientProvider";
import { Header } from "~/components/layouts/Header";
import { Footer } from "~/components/layouts/Footer";

import { OG_DESCRIPTION, OG_TITLE } from "~/utils/constants";

const InnovatorGrotesk = localFont({
src: [
{
Expand Down Expand Up @@ -45,20 +47,18 @@ const InnovatorGrotesk = localFont({
});

export const metadata: Metadata = {
title: "People-work.net — Job titles decoded. In a simle Q&A format.",
description:
"People-work.net is a web project for anyone curious about the different paths people take in their careers. And how it turned out for them.",
title: OG_TITLE,
description: OG_DESCRIPTION,
metadataBase: new URL("https://people-work.net"),
openGraph: {
images: [
{
url: `${process.env.NEXT_PUBLIC_SITE_URL}/opengraph-image.jpg`,
alt: "People-work Open Graph Image",
},
{
url: `${process.env.NEXT_PUBLIC_SITE_URL}/twitter-image.jpg`,
alt: "People-work Open Graph Image",
},
],
images: ["opengraph-image.jpg"],
},
twitter: {
title: OG_TITLE,
description: OG_DESCRIPTION,
site: "people-work.net",
card: "summary_large_image",
images: ["opengraph-image.jpg"],
},
};

Expand Down
2 changes: 2 additions & 0 deletions src/components/layouts/QAPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export function QAPage({ slug }: QAPageProps) {
const { data: answers, isLoading: isAnswersLoading } = useAnswers(slug);
const { data: person, isLoading: isPersonLoading } = usePerson(slug);

console.log(answers);

const isLoading = isAnswersLoading && isPersonLoading;

if (isLoading) {
Expand Down
3 changes: 1 addition & 2 deletions src/models/Answer.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import mongoose, { Schema, Document, model } from "mongoose";

import { IQuestion } from "./Question";
import { IPerson } from "./Person";

export interface IAnswer extends Document {
personId: mongoose.Types.ObjectId | IPerson;
personId: mongoose.Types.ObjectId;
questionId: mongoose.Types.ObjectId | IQuestion;
name: string;
question: string;
Expand Down
4 changes: 4 additions & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
export const LINKEDIN = "https://www.linkedin.com/company/people-work-net";
export const EMAIL = "[email protected]";

export const OG_TITLE = "Job titles decoded. In a simple Q&A format.";
export const OG_DESCRIPTION =
"A small web hustle carefully created for anyone curious about the different paths people take in their careers. On a mission to demystify job titles and show real people behind them.";

0 comments on commit 9e86bad

Please sign in to comment.