Skip to content

Commit

Permalink
Merge pull request #218 from gita/add-AI-link
Browse files Browse the repository at this point in the history
Add ai link + changed URL structure
  • Loading branch information
samanyougarg authored Sep 7, 2023
2 parents 9c8d6d4 + 5cce4b8 commit c7808fd
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 36 deletions.
3 changes: 1 addition & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module.exports = withPlausibleProxy()({
},
});


// Injected content via Sentry wizard below

const { withSentryConfig } = require("@sentry/nextjs");
Expand Down Expand Up @@ -53,5 +52,5 @@ module.exports = withSentryConfig(

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
}
},
);
14 changes: 7 additions & 7 deletions src/app/[[...locale]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const metadata: Metadata = {
title: "Srimad Bhagavad Gita - Free Searchable Online Bhagwat Geeta",
description:
"Bhagwat Geeta in Hindi and English. Read Bhagavad Gita online in a simple, beautiful and easy-to-use interface; Gita Saar In Hindi; Bhagavad Gita quotes.",
url: "https://bhagavadgita.io/",
url: "https://bhagavadgita.io",
siteName: "Bhagavad Gita",
images: "https://bhagavadgita.io/static/images/sribhagavadgita.jpg",
locale: "en_US",
Expand All @@ -36,13 +36,13 @@ export const metadata: Metadata = {
},
alternates: {
languages: {
en: "https://bhagavadgita.io/",
"en-US": "https://bhagavadgita.io/",
"en-GB": "https://bhagavadgita.io/",
"en-IN": "https://bhagavadgita.io/",
hi: "https://bhagavadgita.io/hi/",
en: "https://bhagavadgita.io",
"en-US": "https://bhagavadgita.io",
"en-GB": "https://bhagavadgita.io",
"en-IN": "https://bhagavadgita.io",
hi: "https://bhagavadgita.io/hi",
},
canonical: "https://bhagavadgita.io/",
canonical: "https://bhagavadgita.io",
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/app/about/[[...locale]]/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const jsonLdTwo = {
"@type": "ListItem",
position: 2,
item: {
"@id": "https://bhagavadgita.io/about/",
"@id": "https://bhagavadgita.io/about",
name: "What is The Bhagavad Gita - BhagavadGita.io",
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/app/about/[[...locale]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const metadata: Metadata = {
title: "Srimad Bhagavad Gita - Free Searchable Online Bhagwat Geeta",
description:
"Bhagavad Gita, also known as the Gita - the song of lord is a practical guide to one's life that guides one re-organise their life, achieve inner peace and approach supreme lord (the ultimate reality).",
url: "https://bhagavadgita.io/about/",
url: "https://bhagavadgita.io/about",
siteName: "Bhagavad Gita",
images: "https://bhagavadgita.io/static/images/sribhagavadgita.jpg",
locale: "en_US",
Expand All @@ -29,7 +29,7 @@ export const metadata: Metadata = {
site: "@ShriKrishna",
},
alternates: {
canonical: "https://bhagavadgita.io/about/",
canonical: "https://bhagavadgita.io/about",
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/app/acknowledgements/[[...locale]]/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const jsonLdTwo = {
"@type": "ListItem",
position: 2,
item: {
"@id": "https://bhagavadgita.io/acknowledgements/",
"@id": "https://bhagavadgita.io/acknowledgements",
name: "Acknowledgements - BhagavadGita.io",
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/app/acknowledgements/[[...locale]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const metadata: Metadata = {
title: "Acknowledgements - Featured Bhagavad Gita Translations",
description:
"We extend our heartfelt gratitude to esteemed organizations and individuals for allowing us to feature their invaluable Bhagavad Gita translations and commentaries.",
url: "https://bhagavadgita.io/acknowledgements/",
url: "https://bhagavadgita.io/acknowledgements",
siteName: "Bhagavad Gita",
images: "https://bhagavadgita.io/static/images/sribhagavadgita.jpg",
locale: "en_US",
Expand All @@ -29,7 +29,7 @@ export const metadata: Metadata = {
site: "@ShriKrishna",
},
alternates: {
canonical: "https://bhagavadgita.io/acknowledgements/",
canonical: "https://bhagavadgita.io/acknowledgements",
},
};

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const jsonLdTwo = {
"@type": "ListItem",
position: 2,
item: {
"@id": "https://bhagavadgita.io/bhagavad-gita-quotes/",
"@id": "https://bhagavadgita.io/bhagavad-gita-quotes",
name: "Bhagavad Gita Quotes",
},
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const metadata: Metadata = {
title: "Bhagavad Gita Quotes By Krishna - BhagavadGita.io",
description:
"100+ Bhagavad Gita Quotes spoken by Lord Krishna in the Bhagavad Gita to Arjuna on the battlefield of the Kurukshetra.",
url: "https://bhagavadgita.io/about/",
url: "https://bhagavadgita.io/bhagavad-gita-quotes",
siteName: "Bhagavad Gita",
images: "https://bhagavadgita.io/static/images/sribhagavadgita.jpg",
locale: "en_US",
Expand All @@ -27,7 +27,7 @@ export const metadata: Metadata = {
site: "@ShriKrishna",
},
alternates: {
canonical: "https://bhagavadgita.io/bhagavad-gita-quotes/",
canonical: "https://bhagavadgita.io/bhagavad-gita-quotes",
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const getJsonLd = (chapterNumber: string, nameTranslated?: string) => ({
"@type": "ListItem",
position: 2,
item: {
"@id": `https://bhagavadgita.io/chapter/${chapterNumber}/`,
"@id": `https://bhagavadgita.io/chapter/${chapterNumber}`,
name: `Bhagavad Gita Chapter ${chapterNumber} - ${nameTranslated}`,
image: "https://bhagavadgita.io/static/images/sribhagavadgita.jpg",
},
Expand Down
12 changes: 6 additions & 6 deletions src/app/chapter/[chapterNumber]/(chapter)/[[...locale]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
siteName: "Bhagavad Gita",
locale: "en_US",
type: "article",
authors: "https://www.facebook.com/radhakrishnablog/",
authors: "https://www.facebook.com/iiRadhaKrishnaii/",
tags: ["Krishna", "Bhagavad Gita", "Bhagwad Gita"],
section: "Bhagavad Gita",
title: `Bhagavad Gita Chapter ${chapterNumber} - ${chapterData.gita_chapters_by_pk.name_translated} - BhagavadGita.io`,
Expand All @@ -62,13 +62,13 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
},
alternates: {
languages: {
en: `https://bhagavadgita.io/chapter/${chapterNumber}/`,
"en-US": `https://bhagavadgita.io/chapter/${chapterNumber}/`,
"en-GB": `https://bhagavadgita.io/chapter/${chapterNumber}/`,
"en-IN": `https://bhagavadgita.io/chapter/${chapterNumber}/`,
en: `https://bhagavadgita.io/chapter/${chapterNumber}`,
"en-US": `https://bhagavadgita.io/chapter/${chapterNumber}`,
"en-GB": `https://bhagavadgita.io/chapter/${chapterNumber}`,
"en-IN": `https://bhagavadgita.io/chapter/${chapterNumber}`,
hi: `https://bhagavadgita.io/chapter/${chapterNumber}/hi`,
},
canonical: `https://bhagavadgita.io/chapter/${chapterNumber}/`,
canonical: `https://bhagavadgita.io/chapter/${chapterNumber}`,
},
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const getJsonLd = (chapterNumber: string, verseNumber: string) => ({
"@type": "ListItem",
position: 3,
item: {
"@id": `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}/`,
"@id": `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}`,
name: `Bhagavad Gita Chapter ${chapterNumber} Verse ${verseNumber}`,
image: "https://bhagavadgita.io/static/images/sribhagavadgita.jpg",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function generateMetadata({
return {
title: `Bhagavad Gita Chapter ${chapterNumber} Verse ${verseNumber} - BhagavadGita.io`,
openGraph: {
url: `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}/`,
url: `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}`,
siteName: "Bhagavad Gita",
locale: "en_US",
type: "article",
Expand All @@ -51,13 +51,13 @@ export async function generateMetadata({
},
alternates: {
languages: {
en: `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}/`,
"en-US": `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}/`,
"en-GB": `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}/`,
"en-IN": `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}/`,
en: `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}`,
"en-US": `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}`,
"en-GB": `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}`,
"en-IN": `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}`,
hi: `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}/hi`,
},
canonical: `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}/`,
canonical: `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}`,
},
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/privacy-policy/[[...locale]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ export default function PrivacyPolicy() {
<strong>Website</strong> refers to BhagavadGita.io, accessible
from{" "}
<a
href="https://bhagavadgita.io/"
href="https://bhagavadgita.io"
rel="external nofollow noopener"
target="_blank"
>
https://bhagavadgita.io/
https://bhagavadgita.io
</a>
</p>
</li>
Expand Down
5 changes: 5 additions & 0 deletions src/components/Footers/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ const getNavigation = (translate: Translate) => ({
href: "/app",
newTab: false,
},
{
name: translate("Bhagavad Gita AI"),
href: "https://bhagavadgita.ai",
newTab: true,
},
{
name: translate("Acknowledgements"),
href: "/acknowledgements",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Headers/IndexHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const chapters = [
];

const mobileNav = [
{ name: "Quotes", href: "/quotes", current: false },
{ name: "Quotes", href: "/bhagavad-gita-quotes", current: false },
{ name: "About Gita", href: "/about", current: false },
];

Expand Down Expand Up @@ -225,7 +225,7 @@ export default function IndexHeader({ locale, translate }: Props) {
)}
</Popover>
<LinkWithLocale
href="/quotes"
href="/bhagavad-gita-quotes"
className="text-base font-medium text-black hover:text-gray-500 focus:outline-none dark:text-white"
>
{translate("Quotes")}
Expand Down

1 comment on commit c7808fd

@vercel
Copy link

@vercel vercel bot commented on c7808fd Sep 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

bg-frontend – ./

bg-frontend-gita-v2.vercel.app
bg-frontend-git-main-gita-v2.vercel.app
bg-frontend-lac.vercel.app

Please sign in to comment.