Добавлена система поисковых метатегов
This commit is contained in:
parent
bcf37184e5
commit
ab1335e692
6 changed files with 29 additions and 2 deletions
1
.nvmrc
Normal file
1
.nvmrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
22
|
||||||
|
|
@ -6,5 +6,14 @@ import tailwindcss from '@tailwindcss/vite';
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@': './src',
|
||||||
|
'@constants': './src/constants',
|
||||||
|
'@components': './src/components',
|
||||||
|
'@layouts': './src/layouts',
|
||||||
|
'@styles': './src/styles',
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
1
frontend/src/constants.ts
Normal file
1
frontend/src/constants.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export const SITE_URL = 'https://avtourist-surgut.ru/';
|
||||||
|
|
@ -4,6 +4,14 @@ import '@styles/global.css';
|
||||||
import Header from "@components/layout/header/Header.astro";
|
import Header from "@components/layout/header/Header.astro";
|
||||||
import Footer from "@components/layout/footer/Footer.astro";
|
import Footer from "@components/layout/footer/Footer.astro";
|
||||||
import ConsultationModal from "@components/base/ConsultationModal.astro";
|
import ConsultationModal from "@components/base/ConsultationModal.astro";
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
canonicalLink?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { title, description, canonicalLink } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|
@ -13,9 +21,11 @@ import ConsultationModal from "@components/base/ConsultationModal.astro";
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicons/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/favicons/favicon.svg" />
|
||||||
<link rel="icon" href="/favicons/favicon.ico" />
|
<link rel="icon" href="/favicons/favicon.ico" />
|
||||||
|
<title>{title}</title>
|
||||||
|
<meta name="description" content={description} />
|
||||||
|
{canonicalLink && <link rel="canonical" href={canonicalLink} />}
|
||||||
<!-- Yandex верификация -->
|
<!-- Yandex верификация -->
|
||||||
<meta name="yandex-verification" content="be3edfd138348e43" />
|
<meta name="yandex-verification" content="be3edfd138348e43" />
|
||||||
<title>Автоюрист в Сургуте</title>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<Header />
|
<Header />
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,16 @@
|
||||||
---
|
---
|
||||||
import Layout from '@layouts/Layout.astro';
|
import Layout from '@layouts/Layout.astro';
|
||||||
|
import { SITE_URL } from '@constants';
|
||||||
import Hero from '@components/home/Hero.astro';
|
import Hero from '@components/home/Hero.astro';
|
||||||
import Services from "@components/home/Services.astro";
|
import Services from "@components/home/Services.astro";
|
||||||
import WhyUs from "@components/home/WhyUs.astro";
|
import WhyUs from "@components/home/WhyUs.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout>
|
<Layout
|
||||||
|
title="Автоюрист в Сургуте — юридическая помощь автовладельцам"
|
||||||
|
description="Профессиональная юридическая помощь автовладельцам в Сургуте. Споры со страховыми, возврат прав, ДТП, споры с автосалонами."
|
||||||
|
canonicalLink={SITE_URL}
|
||||||
|
>
|
||||||
<Hero />
|
<Hero />
|
||||||
<Services />
|
<Services />
|
||||||
<WhyUs />
|
<WhyUs />
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
"paths": {
|
"paths": {
|
||||||
"@styles/*": ["src/styles/*"],
|
"@styles/*": ["src/styles/*"],
|
||||||
"@components/*": ["src/components/*"],
|
"@components/*": ["src/components/*"],
|
||||||
|
"@constants/*": ["src/constants/*"],
|
||||||
"@layouts/*": ["src/layouts/*"],
|
"@layouts/*": ["src/layouts/*"],
|
||||||
"@assets/*": ["src/assets/*"],
|
"@assets/*": ["src/assets/*"],
|
||||||
"@pages/*": ["src/pages/*"]
|
"@pages/*": ["src/pages/*"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue