Добавлена система поисковых метатегов
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({
|
||||
vite: {
|
||||
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 Footer from "@components/layout/footer/Footer.astro";
|
||||
import ConsultationModal from "@components/base/ConsultationModal.astro";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
description: string;
|
||||
canonicalLink?: string;
|
||||
}
|
||||
|
||||
const { title, description, canonicalLink } = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
|
|
@ -13,9 +21,11 @@ import ConsultationModal from "@components/base/ConsultationModal.astro";
|
|||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicons/favicon.svg" />
|
||||
<link rel="icon" href="/favicons/favicon.ico" />
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
{canonicalLink && <link rel="canonical" href={canonicalLink} />}
|
||||
<!-- Yandex верификация -->
|
||||
<meta name="yandex-verification" content="be3edfd138348e43" />
|
||||
<title>Автоюрист в Сургуте</title>
|
||||
</head>
|
||||
<body>
|
||||
<Header />
|
||||
|
|
|
|||
|
|
@ -1,11 +1,16 @@
|
|||
---
|
||||
import Layout from '@layouts/Layout.astro';
|
||||
import { SITE_URL } from '@constants';
|
||||
import Hero from '@components/home/Hero.astro';
|
||||
import Services from "@components/home/Services.astro";
|
||||
import WhyUs from "@components/home/WhyUs.astro";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<Layout
|
||||
title="Автоюрист в Сургуте — юридическая помощь автовладельцам"
|
||||
description="Профессиональная юридическая помощь автовладельцам в Сургуте. Споры со страховыми, возврат прав, ДТП, споры с автосалонами."
|
||||
canonicalLink={SITE_URL}
|
||||
>
|
||||
<Hero />
|
||||
<Services />
|
||||
<WhyUs />
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
"paths": {
|
||||
"@styles/*": ["src/styles/*"],
|
||||
"@components/*": ["src/components/*"],
|
||||
"@constants/*": ["src/constants/*"],
|
||||
"@layouts/*": ["src/layouts/*"],
|
||||
"@assets/*": ["src/assets/*"],
|
||||
"@pages/*": ["src/pages/*"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue