Function general

Generates general SEO meta tags for the HTML head section.

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

const tags = general({
title: 'My Page',
description: 'This is my page description',
domain: 'example.com',
path: '/my-page',
suffix: 'My Site'
});
// Output:
// <title>My Page | My Site</title>
// <meta name="description" property="description" content="This is my page description" />
// <link rel="canonical" href="https://example.com/my-page" />
  • Parameters

    • config: GeneralConfig

      Configuration object for general SEO tags

    Returns string

    The generated meta tags as an HTML string