Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SEO-related meta tags #161

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading