libreria-astro-lefebvre 0.1.41 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -48,6 +48,7 @@ export const metadata: ComponentMetadata = {
|
|
|
48
48
|
{ name: 'authorUrl', type: 'text', help: 'Url a la ficha del autor del contenido. Se incluye SIEMPRE en los datos estructurados (JSON-LD author). Si se deja vacío, no se emite autoría', label: 'Url del autor', example_value: 'https://lefebvre.es/genia-l/blog/autor/maria-garcia-lopez/' },
|
|
49
49
|
{ name: 'authorType', type: 'select', options: ['Person', 'Organization'], options_labels: ['Persona', 'Organización'], help: 'Tipo schema.org del autor en el JSON-LD. Usar "Organización" cuando el autor sea la propia entidad (p. ej. "Lefebvre"); en el resto de casos, "Persona". Default: Persona', label: 'Tipo de autor (SEO)', example_value: 'Person' },
|
|
50
50
|
{ name: 'datePublished', type: 'text', help: 'Fecha de publicación en formato ISO 8601 para los datos estructurados (JSON-LD datePublished). No se muestra visualmente. Ej: 2026-01-10T00:00:00.000Z', label: 'Fecha publicación (ISO)', example_value: '2026-01-10T00:00:00.000Z' },
|
|
51
|
+
{ name: 'dateModified', type: 'text', help: 'Fecha de última modificación en formato ISO 8601 para los datos estructurados (JSON-LD dateModified). No se muestra visualmente. Si se deja vacía, no se emite. Ej: 2026-02-15T00:00:00.000Z', label: 'Fecha modificación (ISO)', example_value: '2026-02-15T00:00:00.000Z' },
|
|
51
52
|
{ name: 'keywords', type: 'text', help: 'Palabras clave reales para los datos estructurados (JSON-LD keywords), separadas por comas. Se muestran como badge si "Etiqueta visible" es Keywords', label: 'Keywords (SEO)', example_value: 'Legaltech, Contratos, IA' }
|
|
52
53
|
]
|
|
53
54
|
}
|
|
@@ -14,6 +14,7 @@ interface MontevideoItem {
|
|
|
14
14
|
authorType?: 'Person' | 'Organization'; // tipo schema.org del autor en el JSON-LD
|
|
15
15
|
description?: string;
|
|
16
16
|
datePublished?: string; // ISO 8601, para JSON-LD
|
|
17
|
+
dateModified?: string; // ISO 8601, para JSON-LD (última modificación)
|
|
17
18
|
keywords?: string; // keywords reales, para JSON-LD y para etiqueta visual
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -46,7 +47,8 @@ const structuredData = `<script type="application/ld+json">
|
|
|
46
47
|
"image": "${escapeJson(extractImageUrl(item.image))}"` : ""}${item.link ? `,
|
|
47
48
|
"url": "${escapeJson(item.link)}"` : ""}${item.author ? `,
|
|
48
49
|
"author": { "@type": "${item.authorType === 'Organization' ? 'Organization' : 'Person'}", "name": "${escapeJson(item.author)}", "url": "${escapeJson(item.authorUrl)}" }` : ""}${item.datePublished ? `,
|
|
49
|
-
"datePublished": "${escapeJson(item.datePublished)}"` : ""}${item.
|
|
50
|
+
"datePublished": "${escapeJson(item.datePublished)}"` : ""}${item.dateModified ? `,
|
|
51
|
+
"dateModified": "${escapeJson(item.dateModified)}"` : ""}${item.keywords ? `,
|
|
50
52
|
"keywords": "${escapeJson(item.keywords)}"` : ""}
|
|
51
53
|
}
|
|
52
54
|
}`).join(',')}]
|