From 6cb688bd1b2285fb917194852fdc285c798d43cc Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sat, 7 Jun 2025 20:17:01 +0200 Subject: Add new images and update portfolio layouts for enhanced presentation --- src/pages/blog/[id].astro | 125 ++-------------------------------------------- 1 file changed, 4 insertions(+), 121 deletions(-) (limited to 'src/pages/blog') diff --git a/src/pages/blog/[id].astro b/src/pages/blog/[id].astro index 3dc324a..8f02b65 100644 --- a/src/pages/blog/[id].astro +++ b/src/pages/blog/[id].astro @@ -1,11 +1,7 @@ --- -import Layout from "@/layouts/Layout.astro"; -import { getCollection, render } from "astro:content"; -import { type GetStaticPaths } from "astro"; - -interface Props { - entry: any; -} +import type { GetStaticPaths } from "astro"; +import { getCollection } from "astro:content"; +import BlogSingleLayout from "@/layouts/BlogSingleLayout.astro"; export const getStaticPaths: GetStaticPaths = async () => { const entries = await getCollection("blog"); @@ -16,119 +12,6 @@ export const getStaticPaths: GetStaticPaths = async () => { }; const { entry } = Astro.props; -const { Content } = await render(entry); -const formattedDate = new Date(entry.data.publishedAt).toLocaleDateString( - "es-ES", - { - year: "numeric", - month: "long", - day: "numeric", - weekday: "long", - }, -); - -const schema = { - "@context": "https://schema.org", - "@type": "BlogPosting", - headline: entry.data.title, - datePublished: entry.data.publishedAt.toISOString(), - keywords: entry.data.tags || [], - author: { - "@type": "Person", - name: "Ariel Costas Guerrero", - }, - publisher: { - "@type": "Person", - name: "Ariel Costas Guerrero", - url: "https://www.costas.dev", - image: { - "@type": "ImageObject", - url: "https://www.costas.dev/favicon.png", - }, - }, -}; --- - -