--- // src/layouts/PostLayout.astro 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.title)}`; const linkedinShareUrl = `https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(shareUrl)}&title=${encodeURIComponent(frontmatter.title)}`; ---