Skip to content

Commit

Permalink
Corregir SEO tags
Browse files Browse the repository at this point in the history
  • Loading branch information
arendondiosa committed May 7, 2024
1 parent 12dd928 commit 1957eb9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/[lang]/speakers/[uniquepage]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ export async function generateMetadata({ params: { uniquepage, lang } }, parent)
const dataLang = lang === 'en' ? en : es;
const dataSection = dataLang?.sections;
const speakersData = dataSection.keynotes;
const keynoteData = speakerslist.find((p) => p.id.toString() === uniquepage);
const speakerData = speakerslist.find((p) => p.id.toString() === uniquepage);

return {
title: `${keynoteData.first_name} ${keynoteData.last_name} | ${speakersData.title}`,
description: `${keynoteData.biography[lang]}`,
title: `${speakerData.first_name} ${speakerData.last_name} | ${speakersData.title}`,
description: `${speakerData.biography[lang]}`,
openGraph: {
title: `${keynoteData.first_name} ${keynoteData.last_name} | ${speakersData.title}`,
title: `${speakerData.first_name} ${speakerData.last_name} | ${speakersData.title}`,
images: [
{
url: `/images/keynote/${keynoteData.photo}`,
url: `/images/speaker/${speakerData.photo}`,
width: 200,
height: 200
}
],
description: `${keynoteData.biography[lang]}`
description: `${speakerData.biography[lang]}`
}
};
}
Expand Down

0 comments on commit 1957eb9

Please sign in to comment.