--- import RelatedPosts from "../components/PostsRelacionados.astro"; // Componente para posts relacionados import Navbar from "../components/Navbar.astro"; import Footer from "../components/Footer.astro"; const { frontmatter } = Astro.props; const headings = Astro.props.headings; const description = frontmatter.descripcion; // URLs para compartir en redes sociales const shareUrl = new URL(Astro.url.pathname, Astro.site).toString(); const facebookShareUrl = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`; const twitterShareUrl = `https://twitter.com/intent/tweet?url=${encodeURIComponent(shareUrl)}&text=${encodeURIComponent(frontmatter.titulo)}`; const linkedinShareUrl = `https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(shareUrl)}&title=${encodeURIComponent(frontmatter.titulo)}`; const blogJsonLd = { "@context": "https://schema.org", "@type": "BlogPosting", "headline": frontmatter.titulo, "image": frontmatter.imagen && new URL(frontmatter.imagen, Astro.site), "datePublished": frontmatter.fecha, "dateModified": frontmatter.fecha, "author": { "@type": "Person", "name": frontmatter.autor }, "publisher": { "@type": "Organization", "name": "Ecobjetivos", "logo": { "@type": "ImageObject", "url": new URL('/logo.png', Astro.site) } }, "description": description }; --- {frontmatter.titulo} - Ecobjetivos