UNPKG

libreria-astro-lefebvre

Version:

Librería de componentes Astro, React y Vue para Lefebvre

71 lines (69 loc) 2.27 kB
import type { ComponentMetadata } from '../interfaces/types'; export const metadata: ComponentMetadata = { component_name: 'SEO_Head_Section', category: 'SEO', name: 'SEO Head Section', description: 'Sección de encabezado SEO para mejorar la visibilidad en buscadores', framework: 'Astro', priority: 1, tags: ['seo', 'genial'], fields: [ { name: 'title', type: 'text', help: 'Título para buscadores', label: 'Título de la página', mandatory: false, example_value: 'Lefebvre' }, { name: 'description', type: 'text', help: 'Descripción para buscadores', label: 'Descripción de la página', mandatory: false, example_value: '' }, { name: 'canonical', type: 'text', help: 'URL canónica de la página', label: 'URL canónica', mandatory: false, example_value: '' }, { name: 'shareImgSrc', type: 'text', help: 'Imagen al compartir en RRSS', label: 'Src de la imagen para compartir', mandatory: false, example_value: '' }, { name: 'robots', type: 'select', help: 'Directiva de indexación', label: 'Indexación por parte de los motores de búsqueda', options: ['index, follow', 'noindex, nofollow', 'index, nofollow', 'noindex, follow'], options_labels: ['Indexar y seguir enlaces', 'No indexar ni seguir enlaces', 'Indexar pero no seguir enlaces', 'No indexar pero seguir enlaces'], example_value: 'index, follow' }, { name: 'subdirectory', type: 'text', help: 'Ruta base del sitio (p. ej. "/genia-l"). Se antepone al host al construir el canonical y las URLs absolutas. Déjalo vacío si el sitio cuelga de la raíz', label: 'Subdirectorio', mandatory: false, example_value: '' }, { name: 'siteUrl', type: 'text', help: 'Origen público del sitio (protocolo + host, sin barra final, p. ej. "https://lefebvre.es"). Necesario en SSR tras un proxy, donde Astro.url resuelve al host interno (localhost). Si se deja vacío, se usa Astro.site o el host de la petición', label: 'URL del sitio', mandatory: false, example_value: '' }, ] };