Skip to content

Commit

Permalink
Add SEO-related meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jaseemuddinn committed Oct 17, 2024
1 parent 06b2767 commit 1b53e5e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
16 changes: 16 additions & 0 deletions components/content/FfPeopleList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,20 @@ const data = await queryContent('/about-us/people/_people')
//const people = data.people.sort((a, b) => a.name > b.name);
const people = data.people
// Add SEO-related meta tags
useHead({
title: 'People - FOSSi Foundation',
meta: [
{ name: 'description', content: 'Meet the people behind the FOSSi Foundation.' },
{ property: 'og:title', content: 'People - FOSSi Foundation' },
{ property: 'og:description', content: 'Meet the people behind the FOSSi Foundation.' },
{ property: 'og:image', content: 'https://fossi-foundation.org/images/people.jpg' },
{ property: 'og:url', content: 'https://fossi-foundation.org/about-us/people' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:title', content: 'People - FOSSi Foundation' },
{ name: 'twitter:description', content: 'Meet the people behind the FOSSi Foundation.' },
{ name: 'twitter:image', content: 'https://fossi-foundation.org/images/people.jpg' }
]
})
</script>
12 changes: 12 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ export default defineNuxtConfig({
'python',
]
},
// Pec85: Automatically take the first picture for SEO-related meta tags
seo: {
image: {
path: 'images',
first: true
}
},
// Ped20: Make URLs absolute automatically
url: {
base: 'https://fossi-foundation.org',
relative: false
}
},

// Nuxt Content Assets configuration.
Expand Down

0 comments on commit 1b53e5e

Please sign in to comment.