aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-12-23 14:20:07 +0100
committerAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-12-23 14:20:07 +0100
commit078d34867aa33fd7684ebe54b723309f2dcbc0ff (patch)
tree11a475013469c1fca26a8cf75649917ff2d16fff
parent3013f352570439832075bab19c9ae91ec6ab98ac (diff)
Fix complaints
-rw-r--r--src/pages/blog.astro2
-rw-r--r--src/pages/blog/[id].astro4
-rw-r--r--src/pages/contact.astro1
-rw-r--r--src/pages/index.astro1
-rw-r--r--src/pages/portfolio.astro2
-rw-r--r--src/pages/trajectory.astro2
6 files changed, 7 insertions, 5 deletions
diff --git a/src/pages/blog.astro b/src/pages/blog.astro
index 9d2d77b..1632262 100644
--- a/src/pages/blog.astro
+++ b/src/pages/blog.astro
@@ -42,7 +42,7 @@ const schema = {
---
<Layout title="Blog" description="Artículos sobre desarrollo, tecnología y otras temáticas que pueda querer compartir.">
- <script type="application/ld+json" slot="head-jsonld" set:html={JSON.stringify(schema)}></script>
+ <script is:inline type="application/ld+json" slot="head-jsonld" set:html={JSON.stringify(schema)}></script>
<h1>Blog de Ariel Costas</h1>
diff --git a/src/pages/blog/[id].astro b/src/pages/blog/[id].astro
index 6488a04..50bf998 100644
--- a/src/pages/blog/[id].astro
+++ b/src/pages/blog/[id].astro
@@ -9,7 +9,7 @@ export const getStaticPaths = (async () => {
params: { id: entry.id },
props: { entry },
}));
-}) as GetStaticPaths;
+}) satisfies GetStaticPaths;
const { entry } = Astro.props;
const { Content } = await render(entry);
@@ -44,7 +44,7 @@ const schema = {
---
<Layout title={entry.data.title} description={entry.data.metaDescription}>
- <script type="application/ld+json" slot="head-jsonld" set:html={JSON.stringify(schema)}></script>
+ <script is:inline type="application/ld+json" slot="head-jsonld" set:html={JSON.stringify(schema)}></script>
<h1>{entry.data.title}</h1>
<small>
diff --git a/src/pages/contact.astro b/src/pages/contact.astro
index 3cb6dc5..2bb5b18 100644
--- a/src/pages/contact.astro
+++ b/src/pages/contact.astro
@@ -11,6 +11,7 @@ const schema = {
<Layout title="Contacto" description="Ponte en contacto conmigo">
<script
+ is:inline
type="application/ld+json"
slot="head-jsonld"
set:html={JSON.stringify(schema)}
diff --git a/src/pages/index.astro b/src/pages/index.astro
index e995a9d..fcef172 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -16,6 +16,7 @@ const schema = {
<Layout title="Inicio" description="Página de inicio de mi web">
<script
+ is:inline
type="application/ld+json"
slot="head-jsonld"
set:html={JSON.stringify(schema)}
diff --git a/src/pages/portfolio.astro b/src/pages/portfolio.astro
index 926d6b0..cdbb24a 100644
--- a/src/pages/portfolio.astro
+++ b/src/pages/portfolio.astro
@@ -1,5 +1,4 @@
---
-import { ViewTransitions } from "astro:transitions";
import Layout from "../layouts/Layout.astro";
import TechnologyBadge from "../partials/TechnologyBadge.astro";
@@ -13,6 +12,7 @@ const schema = {
<Layout title="Portfolio" description="Los proyectos en los que he trabajado">
<script
+ is:inline
type="application/ld+json"
slot="head-jsonld"
set:html={JSON.stringify(schema)}
diff --git a/src/pages/trajectory.astro b/src/pages/trajectory.astro
index ae3cba7..eb6adc6 100644
--- a/src/pages/trajectory.astro
+++ b/src/pages/trajectory.astro
@@ -10,7 +10,7 @@ const schema = {
---
<Layout title="Trayectoria" description="Mi trayectoria como desarrollador">
- <script type="application/ld+json" slot="head-jsonld" set:html={JSON.stringify(schema)}></script>
+ <script is:inline type="application/ld+json" slot="head-jsonld" set:html={JSON.stringify(schema)}></script>
<h1>Mi trayectoria como desarrollador</h1>