libreria-astro-lefebvre 0.1.28 → 0.1.29
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 +1 -1
- package/src/carbins/Author_2025_Algarve.ts +8 -0
- package/src/carbins/Hero_2025_Benidorm.ts +8 -0
- package/src/carbins/Hero_2026_Benidorm.ts +8 -0
- package/src/components/Astro/Author_2025_Algarve.astro +11 -2
- package/src/components/Astro/Hero_2025_Benidorm.astro +2 -0
- package/src/components/Astro/Hero_2026_Benidorm.astro +2 -0
package/package.json
CHANGED
|
@@ -17,6 +17,14 @@ export const metadata: ComponentMetadata = {
|
|
|
17
17
|
mandatory: false,
|
|
18
18
|
example_value: 'María García López'
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
name: 'urlAuthor',
|
|
22
|
+
type: 'text',
|
|
23
|
+
help: 'URL opcional de la ficha/perfil del autor. Si se informa, el nombre del autor se renderiza como un enlace (<a>) que apunta a esa URL. Si se deja vacío, el nombre se muestra como texto plano (sin enlace)',
|
|
24
|
+
label: 'URL del autor (enlace)',
|
|
25
|
+
mandatory: false,
|
|
26
|
+
example_value: 'https://www.lefebvre.es/autores/maria-garcia-lopez'
|
|
27
|
+
},
|
|
20
28
|
{
|
|
21
29
|
name: 'descriptionAuthor',
|
|
22
30
|
type: 'text',
|
|
@@ -49,6 +49,14 @@ export const metadata: ComponentMetadata = {
|
|
|
49
49
|
mandatory: false,
|
|
50
50
|
example_value: 'María García López'
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
name: 'urlAuthor',
|
|
54
|
+
type: 'text',
|
|
55
|
+
help: 'URL opcional de la ficha/perfil del autor. Se pasa al componente Author_2025_Algarve: si se informa, el nombre del autor se renderiza como enlace. Si se deja vacío, el nombre se muestra como texto plano',
|
|
56
|
+
label: 'URL del autor (enlace)',
|
|
57
|
+
mandatory: false,
|
|
58
|
+
example_value: 'https://www.lefebvre.es/autores/maria-garcia-lopez'
|
|
59
|
+
},
|
|
52
60
|
{
|
|
53
61
|
name: 'descriptionAuthor',
|
|
54
62
|
type: 'text',
|
|
@@ -49,6 +49,14 @@ export const metadata: ComponentMetadata = {
|
|
|
49
49
|
mandatory: false,
|
|
50
50
|
example_value: 'María García López'
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
name: 'urlAuthor',
|
|
54
|
+
type: 'text',
|
|
55
|
+
help: 'URL opcional de la ficha/perfil del autor. Se pasa al componente Author_2025_Algarve: si se informa, el nombre del autor se renderiza como enlace. Si se deja vacío, el nombre se muestra como texto plano',
|
|
56
|
+
label: 'URL del autor (enlace)',
|
|
57
|
+
mandatory: false,
|
|
58
|
+
example_value: 'https://www.lefebvre.es/autores/maria-garcia-lopez'
|
|
59
|
+
},
|
|
52
60
|
{
|
|
53
61
|
name: 'descriptionAuthor',
|
|
54
62
|
type: 'text',
|
|
@@ -5,6 +5,7 @@ const {
|
|
|
5
5
|
imageAuthor,
|
|
6
6
|
imageAuthorAlt,
|
|
7
7
|
nameAuthor,
|
|
8
|
+
urlAuthor, // Opcional: si llega, el nombre del autor se renderiza como enlace
|
|
8
9
|
descriptionAuthor,
|
|
9
10
|
minutes = "20", // Opciones: "5", "10", etc.
|
|
10
11
|
borderRadius = "", // Opciones: "48px", "sm", "md", "lg", "full"
|
|
@@ -57,7 +58,11 @@ const structuredData = (nameAuthor || descriptionAuthor) ? `<script type="applic
|
|
|
57
58
|
|
|
58
59
|
<div class="w-full h-auto flex items-center self-stretch">
|
|
59
60
|
<div class="w-full flex flex-col items-start gap-2">
|
|
60
|
-
<p class="font-inter text-[#262626] text-base font-normal leading-6 underline"
|
|
61
|
+
<p class="font-inter text-[#262626] text-base font-normal leading-6 underline">
|
|
62
|
+
{urlAuthor
|
|
63
|
+
? <a href={urlAuthor} class="hover:opacity-80 transition-opacity" set:html={nameAuthor}></a>
|
|
64
|
+
: <Fragment set:html={nameAuthor} />}
|
|
65
|
+
</p>
|
|
61
66
|
<p class="font-inter text-[#363942] text-sm font-normal leading-5" set:html={descriptionAuthor}></p>
|
|
62
67
|
</div>
|
|
63
68
|
</div>
|
|
@@ -75,7 +80,11 @@ const structuredData = (nameAuthor || descriptionAuthor) ? `<script type="applic
|
|
|
75
80
|
|
|
76
81
|
<div class="w-full h-auto flex items-center self-stretch">
|
|
77
82
|
<div class="w-full flex flex-col items-start gap-2">
|
|
78
|
-
<p class="font-inter text-[#262626] text-base font-normal leading-6 underline"
|
|
83
|
+
<p class="font-inter text-[#262626] text-base font-normal leading-6 underline">
|
|
84
|
+
{urlAuthor
|
|
85
|
+
? <a href={urlAuthor} class="hover:opacity-80 transition-opacity" set:html={nameAuthor}></a>
|
|
86
|
+
: <Fragment set:html={nameAuthor} />}
|
|
87
|
+
</p>
|
|
79
88
|
<p class="font-inter text-[#363942] text-sm font-normal leading-5" set:html={descriptionAuthor}></p>
|
|
80
89
|
</div>
|
|
81
90
|
</div>
|
|
@@ -12,6 +12,7 @@ const {
|
|
|
12
12
|
imageAuthor,
|
|
13
13
|
imageAuthorAlt,
|
|
14
14
|
nameAuthor,
|
|
15
|
+
urlAuthor,
|
|
15
16
|
descriptionAuthor,
|
|
16
17
|
enriquecido = false,
|
|
17
18
|
itemsTagPost = [],
|
|
@@ -50,6 +51,7 @@ const structuredData = `<script type="application/ld+json">
|
|
|
50
51
|
<div class="pl-8 md:pl-0">
|
|
51
52
|
<Author_2025_Algarve
|
|
52
53
|
nameAuthor={nameAuthor}
|
|
54
|
+
urlAuthor={urlAuthor}
|
|
53
55
|
descriptionAuthor={descriptionAuthor}
|
|
54
56
|
imageAuthor={imageAuthor}
|
|
55
57
|
imageAuthorAlt={imageAuthorAlt}
|
|
@@ -12,6 +12,7 @@ const {
|
|
|
12
12
|
imageAuthor,
|
|
13
13
|
imageAuthorAlt,
|
|
14
14
|
nameAuthor,
|
|
15
|
+
urlAuthor,
|
|
15
16
|
descriptionAuthor,
|
|
16
17
|
enriquecido = false,
|
|
17
18
|
itemsTagPost = [],
|
|
@@ -36,6 +37,7 @@ const imageUrl = extractImageUrl(image);
|
|
|
36
37
|
<div class="pl-8 md:pl-0">
|
|
37
38
|
<Author_2025_Algarve
|
|
38
39
|
nameAuthor={nameAuthor}
|
|
40
|
+
urlAuthor={urlAuthor}
|
|
39
41
|
descriptionAuthor={descriptionAuthor}
|
|
40
42
|
imageAuthor={imageAuthor}
|
|
41
43
|
imageAuthorAlt={imageAuthorAlt}
|