|
27 | 27 | ], |
28 | 28 | "description": "Nuxt useLazyAsyncData composable" |
29 | 29 | }, |
30 | | - "Nuxt useHead": { |
31 | | - "prefix": "nhead", |
| 30 | + "Nuxt useSeoMeta": { |
| 31 | + "prefix": "nseo", |
32 | 32 | "body": [ |
33 | | - "useHead({", |
34 | | - "\ttitle: ${1:pageTitle},", |
| 33 | + "useSeoMeta({", |
| 34 | + "\ttitle: ${1:pageTitle}", |
| 35 | + "\tdescription: ${2:pageDescription}", |
35 | 36 | "})" |
36 | 37 | ], |
37 | | - "description": "Nuxt useHead composable" |
| 38 | + "description": "Nuxt useSeoMeta composable" |
38 | 39 | }, |
39 | | - "Nuxt useHead with description": { |
40 | | - "prefix": "nhead-description", |
| 40 | + "Nuxt useSeoMeta - Template": { |
| 41 | + "prefix": "nseo-template", |
41 | 42 | "body": [ |
42 | | - "useHead({", |
43 | | - "\ttitle: ${1:pageTitle},", |
44 | | - "\tmeta: [", |
45 | | - "\t\t{ name: 'description', content: ${2:pageDescription} },", |
46 | | - "\t],", |
| 43 | + "useSeoMeta({", |
| 44 | + "\ttitleTemplate: '%s | ${0}'", |
47 | 45 | "})" |
48 | 46 | ], |
49 | | - "description": "Nuxt useHead composable with description" |
| 47 | + "description": "Nuxt useSeoMeta composable with title template" |
50 | 48 | }, |
51 | | - "Nuxt useHead - Title template": { |
52 | | - "prefix": "nhead-template", |
| 49 | + "Nuxt useServerSeoMeta": { |
| 50 | + "prefix": "nseo-server", |
53 | 51 | "body": [ |
54 | | - "useHead({", |
55 | | - "\ttitleTemplate: (titleChunk) => {", |
56 | | - "\t\treturn titleChunk ? `\\${titleChunk} - ${1:siteTitle}` : '${1:siteTitle}'", |
57 | | - "\t}", |
| 52 | + "useServerSeoMeta({", |
| 53 | + "\ttitle: ${1:pageTitle}", |
| 54 | + "\tdescription: ${2:pageDescription}", |
58 | 55 | "})" |
59 | 56 | ], |
60 | | - "description": "Nuxt useHead composable with title template" |
| 57 | + "description": "Nuxt useServerSeoMeta composable" |
61 | 58 | }, |
62 | | - "Nuxt definePageMeta": { |
63 | | - "prefix": "npagemeta", |
| 59 | + "Nuxt useServerSeoMeta - Template": { |
| 60 | + "prefix": "nseo-server-template", |
64 | 61 | "body": [ |
65 | | - "definePageMeta({", |
66 | | - "\ttitle: '${1:pageTitle}',", |
| 62 | + "useServerSeoMeta({", |
| 63 | + "\ttitleTemplate: '%s | ${0}'", |
67 | 64 | "})" |
68 | 65 | ], |
69 | | - "description": "Nuxt definePageMeta composable" |
70 | | - }, |
71 | | - "Nuxt definePageMeta with description": { |
72 | | - "prefix": "npagemeta-description", |
73 | | - "body": [ |
74 | | - "definePageMeta({", |
75 | | - "\ttitle: '${1:pageTitle}',", |
76 | | - "\tmeta: [", |
77 | | - "\t\t{ name: 'description', content: '${2:pageDescription}' },", |
78 | | - "\t],", |
79 | | - "})" |
80 | | - ], |
81 | | - "description": "Nuxt definePageMeta composable with description" |
| 66 | + "description": "Nuxt useServerSeoMeta composable with title template" |
82 | 67 | }, |
83 | 68 | "Nuxt define plugin": { |
84 | 69 | "prefix": "nplugin", |
|
0 commit comments