DE
Beta-Übersetzung

@core / kit-blog

1.0.1 ▾
verifiziertMIT
GitHub

Blog-Kit für Next.js: Beiträge mit Autoren, Kategorien, Tags, Serien, Feeds, moderierten Kommentaren, Newsletter

Code32 DateienKontext~883 TokensPrüfung bestanden

Der genaue Baum, der nach .genpmignore eingebunden wird. Gepinnt an

src/app/(blog)/_components/share-links.tsxschreibgeschützt · 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>
  );
}

@core/kit-blog melden

Melde dich mit GitHub an, um ein Paket zu melden.