diff options
| author | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2024-06-18 16:53:25 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2024-06-18 16:53:25 +0200 |
| commit | 0421b2120561d7ac6776ebe3858da06ef3d69314 (patch) | |
| tree | c2ada6d5e740c0a5881a87268cfe36fa2af3e3ac /src/pages/index.astro | |
| parent | 97c1e8da0c8a73ef5289b930b5c12745912ada7f (diff) | |
Update homepage and upgrade astro
Diffstat (limited to 'src/pages/index.astro')
| -rw-r--r-- | src/pages/index.astro | 45 |
1 files changed, 11 insertions, 34 deletions
diff --git a/src/pages/index.astro b/src/pages/index.astro index abf3acd..0f92a2d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,10 +2,6 @@ import { getCollection } from "astro:content"; import Layout from "../layouts/Layout.astro"; -const blogCollection = (await getCollection("blog")).sort((a, b) => { - return b.data.publishedAt.getTime() - a.data.publishedAt.getTime(); -}); - const schema = { "@context": "http://schema.org", "@type": "WebSite", @@ -15,14 +11,18 @@ const schema = { --- <Layout title="Inicio" description="Página de inicio de mi web"> - <script type="application/ld+json" slot="head-jsonld" set:html={JSON.stringify(schema)}></script> + <script + type="application/ld+json" + slot="head-jsonld" + set:html={JSON.stringify(schema)} + /> <h1>Inicio</h1> <p> - Te doy la bienvenida a mi web. Aquí encontrarás información sobre mí, - mis proyectos y mis intereses. Esta web está creada con el generador - Hugo y un tema creado por mí desde cero. + Te doy la bienvenida a mi web. Me llamo Ariel, y aquí encontrarás + información sobre mí y mis proyectos. </p> + <h2>¿Quién soy?</h2> <p> Soy un desarrollador web que le gusta aprender cosas nuevas y compartir @@ -32,33 +32,10 @@ const schema = { <h2>¿Qué hago?</h2> <p> - Actualmente trabajo como desarrollador de software y admistrador de + Actualmente trabajo como desarrollador de software y admistrador Cloud en una empresa de tecnología. Me encargo de desarrollar - aplicaciones web y desplegarlas en la nube de forma segura y eficiente. + aplicaciones web en PHP y desplegarlas en la nube de forma segura y eficiente. </p> - <a href="/portfolio">Mi portafolio</a> - - <h2>Últimas entradas del blog</h2> - - <ul> - { - blogCollection.slice(0, 5).map((p) => { - const date = Intl.DateTimeFormat("es-ES", { - day: "2-digit", - month: "short", - year: "numeric", - }).format(p.data.publishedAt); - return ( - <li> - <time datetime={p.data.publishedAt.toISOString()}> - {date} - </time> - <a href={`/blog/${p.slug}`}>{p.data.title}</a> - </li> - ); - }) - } - </ul> - <a href="/blog">Ver todas las entradas</a> + <a href="/portfolio">Mi portfolio</a> </Layout> |
