Function linkedin

Generates LinkedIn meta tags for the HTML head section.

LinkedIn primarily uses Open Graph tags, but also has some LinkedIn-specific tags for better integration with the platform.

import { linkedin } from '@raven-js/beak/seo';

const tags = linkedin({
title: 'My Professional Article',
description: 'A detailed analysis of industry trends',
domain: 'example.com',
path: '/article',
imageUrl: '/article-image.jpg',
owner: 'linkedin.com/in/johndoe',
company: 'linkedin.com/company/mycompany'
});
// Output:
// <meta name="linkedin:title" property="linkedin:title" content="My Professional Article" />
// <meta name="linkedin:description" property="linkedin:description" content="A detailed analysis of industry trends" />
// <meta name="linkedin:url" property="linkedin:url" content="https://example.com/article" />
// <meta name="linkedin:image" property="linkedin:image" content="https://example.com/article-image.jpg" />
// <meta name="linkedin:owner" property="linkedin:owner" content="linkedin.com/in/johndoe" />
// <meta name="linkedin:company" property="linkedin:company" content="linkedin.com/company/mycompany" />
  • Parameters

    • config: LinkedInConfig

      Configuration object for LinkedIn tags

    Returns string

    The generated LinkedIn meta tags as an HTML string