Sphido logo

@sphido/meta

Page extender that add follow properties to page object:

Install

yarn add @sphido/marked
import globby from 'globby';
import {getPages} from '@sphido/core';
import {frontmatter} from '@sphido/frontmatter';
import {meta} from '@sphido/meta';
import {markdown} from '@sphido/markdown';

(async () => {

    const pages = await getPages(
        await globby('content/**/*.md'),
        ...[
            frontmatter,
            markdown,
            meta,
        ],
    );

})();

Source codes

https://github.com/sphido/sphido/tree/main/packages/sphido-meta