Sphido logo

@sphido/meta

Page extender that add follow properties to page object:

Install

yarn add @sphido/marked
const globby = require('globby');
const {save} = require('@sphido/nunjucks');
const {getPages} = require('@sphido/core');

(async () => {

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

})();

Source codes

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