ES

@core / kit-blog

1.0.1 ▾
verificadoMIT
GitHub

Kit de blog para Next.js: posts con autores, categorías, etiquetas, series, feeds, comentarios moderados y newsletter

Código32 archivosContexto~883 tokensescaneo superado

El árbol exacto que se inyectará, tras aplicar .genpmignore. Anclado a

src/app/(blog)/_components/share-links.tsxsolo lectura · fa952a4
// Compartir con enlaces normales: sin scripts ni cookies de terceros.
export function ShareLinks({ url, title }: { url: string; title: string }) {
  const u = encodeURIComponent(url);
  const t = encodeURIComponent(title);
  const links = [
    { name: 'X', href: `https://x.com/intent/post?url=${u}&text=${t}` },
    { name: 'LinkedIn', href: `https://www.linkedin.com/sharing/share-offsite/?url=${u}` },
    { name: 'Facebook', href: `https://www.facebook.com/sharer/sharer.php?u=${u}` },
    { name: 'Email', href: `mailto:?subject=${t}&body=${u}` },
  ];
  return (
    <nav aria-label="Share this post" className="blog-share">
      <span>Share:</span>
      {links.map((l) => (
        <a key={l.name} href={l.href} rel="noopener noreferrer" target={l.name === 'Email' ? undefined : '_blank'}>
          {l.name}
        </a>
      ))}
    </nav>
  );
}

Reportar @core/kit-blog

Inicia sesión con GitHub para reportar un paquete.