1.6.2 • Published 3 months ago
nuxt-directus-seo v1.6.2
Nuxt Directus SEO
Tính năng
- Tạo config SEO cho toàn bộ app NUXTJS khi sử dụng chung với directus và module directus SEO từ codihaus
Quick Setup
- Add
nuxt-directus-seo
dependency to your project
# Using pnpm
pnpm add -D nuxt-directus-seo
# Using yarn
yarn add --dev nuxt-directus-seo
# Using npm
npm install --save-dev nuxt-directus-seo
- Add
nuxt-directus-seo
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-directus-seo'
]
})
Cách sử dụng
- Thêm
useDirectusGlobalSeo();
vào component, layout tổng của dự án - Các Screen cụ thể
- Khai báo trong Screen cụ thể (Component mà router sẽ render)
useDirectusCollectionSeo('COLLECTION_NAME', {
title: "ABC",
id: 34
});
- COLLECTION_NAME: Tên collection ứng với phần setting của SEO detail
- Khi MODEL không có setting detail, hoặc người dùng không nhập, sẽ lấy từ setting chung của collection đó
- MODEL: Dữ liệu detail của model hiện tại, với cấu trúc có sẵn field seo_details bên trong
{
"title": "TITLE",
"id": "",
"seo_details": {
"meta_title": "..."
}
}
1.6.2
3 months ago
1.5.5
7 months ago
1.1.9
8 months ago
1.5.4
7 months ago
1.4.5
7 months ago
1.1.8
8 months ago
1.5.3
7 months ago
1.4.4
7 months ago
1.6.1
7 months ago
1.5.2
7 months ago
1.4.3
7 months ago
1.6.0
7 months ago
1.5.1
7 months ago
1.4.2
7 months ago
1.2.4
8 months ago
1.5.0
7 months ago
1.4.1
8 months ago
1.2.3
8 months ago
1.4.0
8 months ago
1.3.1
8 months ago
1.2.2
8 months ago
1.2.1
8 months ago
1.1.100
8 months ago
1.1.11
8 months ago
1.1.10
8 months ago
1.5.8
7 months ago
1.5.7
7 months ago
1.5.6
7 months ago
1.1.1
8 months ago
1.1.7
8 months ago
1.1.6
8 months ago
1.1.5
8 months ago
1.1.4
8 months ago
1.1.3
8 months ago
1.1.2
8 months ago
1.1.0
12 months ago