this takes what i love about 'next/meta' (originally imported via my 'next-metadata' port) and consolidates it into a simple 250 line library. instead of supporting all meta tags under the sun, only the most essential ones are exposed. less common meta tags can be added with JSX under the 'extra' field. a common problem i had with next-metadata was that open graph embeds copied a lot of data from the main meta tags. to solve this, a highly opiniated 'embed' option exists, which simply passing '{}' will trigger the default behavior of copying the meta title, description, and canonical url into the open graph meta tags. |
||
---|---|---|
.. | ||
jsx-runtime.ts | ||
marko-runtime.ts | ||
render.test.tsx | ||
render.ts | ||
suspense.test.tsx | ||
suspense.ts |