Skip to content

Commit

Permalink
feat: improve metadata for comparison page (#146)
Browse files Browse the repository at this point in the history
Co-authored-by: Haidong Xu <[email protected]>
  • Loading branch information
Esoteriker and Haidong Xu authored Dec 19, 2024
1 parent d3194d6 commit d25365b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
Binary file added public/Images/Comparison-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 43 additions & 1 deletion src/app/comparison-portal/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,51 @@ import { Metadata } from 'next';

import HungerMapChatbot from '@/components/Chatbot/Chatbot';
import { Topbar } from '@/components/Topbar/Topbar';
import { siteConfig } from '@/config/site';

export const metadata: Metadata = {
title: 'Comparison Portal',
title: {
default: 'Comparison Portal',
template: `%s - ${siteConfig.name}`,
},
description:
'Compare real-time global hunger data across different countries and regions. Obtain food insecurity statistics from the WFP Hunger Map Comparison Portal, tailored to various time zones. A valuable resource for humanitarian efforts and research.',
keywords: siteConfig.keywords,
openGraph: {
title: `Comparison Portal - ${siteConfig.name}`,
description:
'Compare real-time global hunger data across different countries and regions. Obtain food insecurity statistics from the WFP Hunger Map Comparison Portal, tailored to various time zones. Essential for humanitarian aid and research.',
url: `${siteConfig.domain}/comparison-portal`,
images: [
{
url: '/Images/Comparison-preview.png',
width: 1200,
height: 630,
alt: `Comparison Portal - ${siteConfig.name}`,
},
],
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: `Comparison Portal - ${siteConfig.name}`,
description:
'Access comparable global hunger data from the WFP Hunger Map Comparison Portal, tailored to different countries and time zones.',
images: [
{
url: '/Images/Comparison-preview.png',
width: 1200,
height: 630,
alt: `Comparison Portal - ${siteConfig.name}`,
},
],
site: '@WFP',
},
robots: {
index: true,
follow: true,
nocache: false,
},
};

export default function Layout({ children }: { children: React.ReactNode }) {
Expand Down

0 comments on commit d25365b

Please sign in to comment.