v0.5.0 - SEO friendly update
- sitemap.xml - robots.txt - meta-tags
This commit is contained in:
@@ -18,4 +18,40 @@ import PricingSection from '../components/PricingSection.vue'
|
||||
import StepsSection from '../components/StepsSection.vue'
|
||||
import TestimonialsSection from '../components/TestimonialsSection.vue'
|
||||
import FaqSection from '../components/FaqSection.vue'
|
||||
|
||||
import { useHead } from '@vueuse/head';
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
useHead({
|
||||
title: route.meta.title,
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
content: route.meta.description
|
||||
},
|
||||
{
|
||||
name: 'keywords',
|
||||
content: route.meta.keywords
|
||||
},
|
||||
// Open Graph теги для соцсетей
|
||||
{
|
||||
property: 'og:title',
|
||||
content: route.meta.title
|
||||
},
|
||||
{
|
||||
property: 'og:description',
|
||||
content: route.meta.description
|
||||
},
|
||||
{
|
||||
property: 'og:type',
|
||||
content: 'website'
|
||||
},
|
||||
{
|
||||
property: 'og:url',
|
||||
content: window.location.href // Здесь можно также задать каноничный URL
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user