From b8c23cd3961557f856c3264ecab008df8b90ec6e Mon Sep 17 00:00:00 2001 From: Ivan Bochkarev Date: Thu, 13 Jun 2024 22:52:05 +0600 Subject: [PATCH 1/5] =?UTF-8?q?feat(docs)=20=D0=9F=D0=B5=D1=80=D0=B5=D0=B2?= =?UTF-8?q?=D0=BE=D0=B4=20Meta=20Tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/7.migration/4.meta.md | 54 +++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/docs/7.migration/4.meta.md b/docs/7.migration/4.meta.md index 6416a273896d..38835218c8ea 100644 --- a/docs/7.migration/4.meta.md +++ b/docs/7.migration/4.meta.md @@ -1,26 +1,26 @@ --- -title: Meta Tags -description: Manage your meta tags, from Nuxt 2 to Nuxt 3. +title: Мета-теги +description: Управление мета-тегами, от Nuxt 2 до Nuxt 3. --- -Nuxt 3 provides several different ways to manage your meta tags: -1. Through your `nuxt.config`. -2. Through the [`useHead`](/docs/api/composables/use-head) [composable](/docs/getting-started/seo-meta) -3. Through [global meta components](/docs/getting-started/seo-meta) +Nuxt 3 предоставляет несколько способов управления мета-тегами: +1. Через ваш `nuxt.config`. +2. С помощью [`useHead`](/docs/api/composables/use-head) [composable](/docs/getting-started/seo-meta) +3. С помощью [глобальных компонентов мета-тегов](/docs/getting-started/seo-meta) -You can customize `title`, `titleTemplate`, `base`, `script`, `noscript`, `style`, `meta`, `link`, `htmlAttrs` and `bodyAttrs`. +Вы можете настраивать `title`, `titleTemplate`, `base`, `script`, `noscript`, `style`, `meta`, `link`, `htmlAttrs` и `bodyAttrs`. ::tip -Nuxt currently uses [`vueuse/head`](https://github.com/vueuse/head) to manage your meta tags, but implementation details may change. +В настоящее время Nuxt использует [`vueuse/head`](https://github.com/vueuse/head) для управления метатегами, но детали реализации могут измениться. :: :read-more{to="/docs/getting-started/seo-meta"} ## Миграция -1. In your `nuxt.config`, rename `head` to `meta`. Consider moving this shared meta configuration into your `app.vue` instead. (Note that objects no longer have a `hid` key for deduplication.) -2. If you need to access the component state with `head`, you should migrate to using [`useHead`](/docs/api/composables/use-head) . You might also consider using the built-in meta-components. -3. If you need to use the Options API, there is a `head()` method you can use when you use `defineNuxtComponent`. +1. В вашем `nuxt.config`, переименуйте `head` в `meta`. Рассмотрите возможность перемещения этой общей конфигурации мета-тегов в ваш `app.vue`. (Обратите внимание, что объекты больше не имеют ключа `hid` для устранения дубликатов.) +2. Если вам нужен доступ к состоянию компонента с помощью `head`, вам следует мигрировать на использование [`useHead`](/docs/api/composables/use-head). Вам также может быть полезно использовать встроенные мета-компоненты. +3. Если вам нужно использовать Options API, есть метод `head()`, который вы можете использовать при использовании `defineNuxtComponent`. ### useHead @@ -30,8 +30,8 @@ Nuxt currently uses [`vueuse/head`](https://github.com/vueuse/head) to manage yo