diff --git a/components/seo.vue b/components/seo.vue new file mode 100644 index 0000000..451081e --- /dev/null +++ b/components/seo.vue @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index 66335ae..4016fdc 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -5,21 +5,10 @@ const imgBase = config.public.imgBase import { marked } from 'marked' -import og_img from '/og_img.png' - -const { data: seo } = await fetchData(`seo`) const { data: menu_raw, status: menu_status } = await fetchData(`menu`) const { data: review } = await fetchData(`review`) const { data: calc_data } = await fetchData(`calculator`) -useSeoMeta({ - title: seo.value && seo.value[0].title, - ogTitle: seo.value && seo.value[0].title, - description: seo.value && seo.value[0].content, - ogDescription: seo.value && seo.value[0].content, - ogImage: config.public.baseUrl + og_img -}) - const pages = computed(() => { const menu = menu_raw.value?.find(el => el.type == 1) return (menu?.pages || []).sort((a, b) => a.order - b.order) @@ -34,14 +23,15 @@ const delivery = computed(() => const setCalcData = (txt: string) => { let c = txt - ;(calc_data.value || []).map(item => { - c = c.replaceAll(`[${item.slug}]`, roubleSign.format(item.base)) - }) + ; (calc_data.value || []).map(item => { + c = c.replaceAll(`[${item.slug}]`, roubleSign.format(item.base)) + }) return marked.parse(c) }