Just replace the information at app.config.ts
file. And itβs done.
export default defineAppConfig({
seo: {
title: "Ease - Get and convert Customers with Ease",
description:
"Modern web templates, starter kits help you convert more customers.",
blogTitle: "Blogs - Ease",
ogTitle: "Get and convert Customers with Ease",
ogBlogTitle: "Easen Blogs π",
ogBlogDescription: "A collection of blogs from Ease",
ogSiteName: "ease.dev",
},
});
Robots & Sitemap
Providing a robots.txt
and sitemap.xml
gives web crawlers data on how to index your site.
Good news! The robots.txt and sitemap.xml are auto-generate for your project.
StartEase has already made some adjustments for you.
If you have specific requirements, here are some recipes:
Block a page from being indexed
<script setup>
useSeoMeta({
robots: 'noindex, follow'
})
</script>
Avoid duplicate content issues
<script setup>
useHead({
// make sure you use an absolute URL
link: [{ rel: 'canonical', href: 'https://your-website.com/blog01' }]
})
</script>
Block a group of pages
User-agent: *
Disallow: /dashboard
or
export default defineNuxtConfig({
robots: {
disallow: ['/admin', '/dashboard'],
}
})
Dynamic OG images
OG images make your links look better when shared, so more people click on them.
This feature is disabled by default because it can make your production build a few megabytes larger.
You can change it at nuxt.config.ts
ogImage: {
enabled: false, //true or false
},
π Congrats! The search engine is now satisfied with your website.